summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/ircbot.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index a1713c2d..06a91c4d 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
#-- vim:sw=2:et
#++
#
@@ -59,7 +60,7 @@ def rawlog(level, message=nil, who_pos=1)
when String
str = message
else
- str = message.pretty_inspect
+ str = message.pretty_inspect rescue '?'
end
qmsg = Array.new
str.each_line { |l|