]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit
debug logging: don't raise on SecurityError
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 15 Apr 2008 13:01:37 +0000 (15:01 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 15 Apr 2008 16:16:44 +0000 (18:16 +0200)
commit56eacc7b8dc2a58949ff8211b982493e21f7ab33
treec8c95e4bc0dc49998dc4dac2f0d122cc814afb81
parent0ed9bf788d778eba03d65ad19cea6c0a5c432870
debug logging: don't raise on SecurityError

Some scripts (from the scripts plugin) can trigger the logging functions
(debug, warning, info etc) in a $SAFE context: this causes the logger to
fail. Catch SecurityError in raw_log() to prevent these valid scripts from
failing.
lib/rbot/ircbot.rb