]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
workaround for broken pretty_inspect
authorMatthias H <apoc@sixserv.org>
Fri, 6 Dec 2013 05:38:38 +0000 (06:38 +0100)
committerMatthias H <apoc@sixserv.org>
Fri, 6 Dec 2013 05:38:38 +0000 (06:38 +0100)
lib/rbot/ircbot.rb

index a1713c2d4a0ecc320d74600cb24a99928ef6c404..06a91c4d29fb1b87edf23bafaae074378d83898f 100644 (file)
@@ -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|