summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/script.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb
index 1b695868..29afa20a 100644
--- a/data/rbot/plugins/script.rb
+++ b/data/rbot/plugins/script.rb
@@ -60,7 +60,7 @@ class ScriptPlugin < Plugin
begin
eval( code )
- rescue => e
+ rescue Exception => e
m.reply( "Script '#{name}' crapped out :(" )
m.reply( e.inspect )
end
@@ -75,7 +75,7 @@ class ScriptPlugin < Plugin
# TODO allow different safe levels for different botusers
begin
eval( code )
- rescue => e
+ rescue Exception => e
m.reply( "Script '#{name}' crapped out :(" )
m.reply( e.inspect )
end
@@ -89,7 +89,7 @@ class ScriptPlugin < Plugin
# TODO allow different safe levels for different botusers
begin
m.reply eval( code ).to_s
- rescue => e
+ rescue Exception => e
m.reply( "Script '#{name}' crapped out :(" )
m.reply( e.inspect )
end