From 8d9e595b2139723354f11141c819e44c80995e70 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 29 Aug 2006 07:25:26 +0000 Subject: [PATCH 1/1] script echo needs a to_s --- data/rbot/plugins/script.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.2