]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/math.rb
lastfm plugin: document compare command
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / math.rb
index f54733b33c0435e3e6a0d2ebd32a5e70f422b407..9dd35c985fabdb2f53be5e942b1a4644aab6a4f5 100644 (file)
@@ -110,9 +110,9 @@ class MathPlugin < Plugin
              answer = "a number with >30 digits..."
            end
          end
-         m.reply answer
+         m.reply answer.to_s
        rescue Exception => e
-         error "couldn't evaluate expression \"#{m.params}\": #{e.inspect}"
+         error e
          m.reply "illegal expression \"#{m.params}\""
          return
        end