summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2013-12-06 06:38:38 +0100
committerMatthias H <apoc@sixserv.org>2013-12-06 06:38:38 +0100
commitbd2b1d26b59d3f5177c49141be937bee7188ec91 (patch)
treea6cc07b66d4223db3cc6d087d274f04726727f5b /lib
parent0f7ba7ef464f864091940b18c53113d10665795f (diff)
workaround for broken pretty_inspect
Diffstat (limited to 'lib')
-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|