begin
eval( code )
- rescue => e
+ rescue Exception => e
m.reply( "Script '#{name}' crapped out :(" )
m.reply( e.inspect )
end
# 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
# 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