diff options
Diffstat (limited to 'lib')
-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}" |