From b9bd1545ed32f93836ed50a71b8e4d89b09186e2 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sun, 15 Oct 2017 17:38:31 -0700 Subject: message: we know the encoding of data we send. Signed-off-by: Robin H. Johnson --- plugins/message.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-65-gdbad