summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-10-15 17:38:31 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2017-10-15 17:38:31 -0700
commitb9bd1545ed32f93836ed50a71b8e4d89b09186e2 (patch)
tree65f77ce6d8ce67f737b3627bc9fda4f7c287ad32
parenttest: add UTF-8 testcase. (diff)
downloadudp2irc-master.tar.gz
udp2irc-master.tar.bz2
udp2irc-master.zip
message: we know the encoding of data we send.HEADmaster
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--plugins/message.rb1
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