X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fmath.rb;h=9dd35c985fabdb2f53be5e942b1a4644aab6a4f5;hb=6b8cca66628db3634296e5cb7e065f84555cf7cd;hp=dde4e954688d384fff712342bf4b1627c7a39042;hpb=d6f297d8f6bff4f33917441355a3e2ff4a0550fe;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/math.rb b/data/rbot/plugins/math.rb index dde4e954..9dd35c98 100644 --- a/data/rbot/plugins/math.rb +++ b/data/rbot/plugins/math.rb @@ -110,7 +110,7 @@ class MathPlugin < Plugin answer = "a number with >30 digits..." end end - m.reply answer + m.reply answer.to_s rescue Exception => e error e m.reply "illegal expression \"#{m.params}\""