diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-30 07:41:25 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-30 07:41:25 +0000 |
commit | 94720bd216fabd41ed894414816d313be68797b6 (patch) | |
tree | f9e875be78396ace647dc5936fcc10aaea1477ff /lib/rbot | |
parent | 4d9c6cd1b6c77127642e2565a2ca4bf2f32bf0a5 (diff) |
BDB::Fatal errors in plugins are now raised to toplevel; bdb lg_max increased to 8 megabytes
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/dbhash.rb | 2 | ||||
-rw-r--r-- | lib/rbot/plugins.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/rbot/dbhash.rb b/lib/rbot/dbhash.rb index 6cae7b2b..b32da500 100644 --- a/lib/rbot/dbhash.rb +++ b/lib/rbot/dbhash.rb @@ -69,7 +69,7 @@ module Irc @@env=nil # TODO: make this customizable # Note that it must be at least four times lg_bsize - @@lg_max = 2*1024*1024 + @@lg_max = 8*1024*1024 # absfilename:: use +key+ as an actual filename, don't prepend the bot's # config path and don't append ".db" def initialize(bot, key, absfilename=false) diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index b735c4c5..50b5576b 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -401,6 +401,10 @@ module Plugins @@bot.auth.allow?(m.plugin, m.source, m.replyto)) begin @@plugins[m.plugin].privmsg(m) + rescue BDB::Fatal => err + error "plugin #{@@plugins[m.plugin].name} privmsg() failed: #{err.class}: #{err}" + error err.backtrace.join("\n") + raise rescue Exception => err #rescue TimeoutError, StandardError, NameError, SyntaxError => err error "plugin #{@@plugins[m.plugin].name} privmsg() failed: #{err.class}: #{err}" |