diff options
author | 2017-10-15 17:38:31 -0700 | |
---|---|---|
committer | 2017-10-15 17:38:31 -0700 | |
commit | b9bd1545ed32f93836ed50a71b8e4d89b09186e2 (patch) | |
tree | 65f77ce6d8ce67f737b3627bc9fda4f7c287ad32 | |
parent | test: add UTF-8 testcase. (diff) | |
download | udp2irc-master.tar.gz udp2irc-master.tar.bz2 udp2irc-master.zip |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | plugins/message.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/message.rb b/plugins/message.rb index 520bf1f..81260cf 100644 --- a/plugins/message.rb +++ b/plugins/message.rb @@ -21,6 +21,7 @@ class MessagePlugin listen_to :udpmessage def listen(m, message) + message.force_encoding('UTF-8') # All Gentoo is pure UTF-8 FILTERS.each do |filter| return if message.match filter end |