From: Giuseppe Bilotta Date: Tue, 29 Aug 2006 07:25:26 +0000 (+0000) Subject: script echo needs a to_s X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=8d9e595b2139723354f11141c819e44c80995e70;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git script echo needs a to_s --- diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index 60c0e973..f8e2c67f 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -92,7 +92,7 @@ class ScriptPlugin < Plugin Thread.start { # TODO allow different safe levels for different botusers begin - m.reply eval( code ) + m.reply eval( code ).to_s rescue => e m.reply( "Script '#{name}' crapped out :(" ) m.reply( e.inspect )