diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-03-19 00:20:20 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-03-19 14:49:48 +0100 |
commit | 427b14e3ee7f7d7d7769069b8b0816e4e59e3bad (patch) | |
tree | c6121f25ae34337b66eaf09d15622cf78010c849 /data/rbot | |
parent | 19773ee72b72a74f6fe911750ae7a2337a81893d (diff) |
script plugin: reindent
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/script.rb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index 5e2f1e58..f6d867c5 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -70,29 +70,29 @@ class ScriptPlugin < Plugin def handle_eval( m, params ) code = params[:code].to_s.dup.untaint - Thread.start { - # TODO allow different safe levels for different botusers - begin - eval( code ) - rescue Exception => e - m.reply( "Script '#{name}' crapped out :(" ) - m.reply( e.inspect ) - end - } + Thread.start { + # TODO allow different safe levels for different botusers + begin + eval( code ) + rescue Exception => e + m.reply( "Script '#{name}' crapped out :(" ) + m.reply( e.inspect ) + end + } end def handle_echo( m, params ) code = params[:code].to_s.dup.untaint - Thread.start { - # TODO allow different safe levels for different botusers - begin - m.reply eval( code ).to_s - rescue Exception => e - m.reply( "Script '#{name}' crapped out :(" ) - m.reply( e.inspect ) - end - } + Thread.start { + # TODO allow different safe levels for different botusers + begin + m.reply eval( code ).to_s + rescue Exception => e + m.reply( "Script '#{name}' crapped out :(" ) + m.reply( e.inspect ) + end + } end |