summaryrefslogtreecommitdiff
path: root/lib/rbot/dbhash.rb
AgeCommit message (Collapse)Author
2009-02-19remove whitespaceRaine Virta
2009-02-15+ @bot.path and datafile methodsGiuseppe Bilotta
We provide two methods that make it more simple and elegant for botmodules to define paths relative to the bot's own directory (botclass) and to the BotModule's (assumed) non-registry directory. The first method is Irc::Bot#path(), which joins its arguments with the botclass. This method can be used to access datafiles in the bot directory with a much cleaner syntax; and since it uses File.join, the resulting paths are also properly formatted on each platform, which doesn't hurt. Each BotModule now also carries a dirname() method that should return the directory under botclass that holds the BotModule's datafiles. dirname() defaults to the BotModule's name(), but it can be overridden, e.g. for backwards compatibility (see the patch for the quotes plugin), or for BotModules that share their datafiles. Datafiles can be accessed using the BotModule#datafile() method that joins the botclass, the dirname() and whatever other argument is passed.
2008-06-20dbhash: dohGiuseppe Bilotta
2008-06-20dbhash.rb: slightly rework errors for failing to load bdbGiuseppe Bilotta
2007-08-30dbhash.rb: fix stupid typoGiuseppe Bilotta
2007-04-11use pretty printing with Logger (debug, info, warning and error messages)Giuseppe Bilotta
2007-04-09database: rbot will now refuse to run on bdb versions lower than 4.x, and it ↵Giuseppe Bilotta
will recommend version 4.2 or higher
2006-07-30BDB::Fatal errors in plugins are now raised to toplevel; bdb lg_max ↵Giuseppe Bilotta
increased to 8 megabytes
2006-07-20Rename the former {{{log}}} method to {{{irclog}}} and introduce new logging ↵Giuseppe Bilotta
functions: alongside the old {{{debug}}} function we now have {{{log}}}, {{{warning}}} and {{{error}}}, which should be used everywhere instead of the good old {{{puts}}} method
2006-07-20Explicitly handle BDB::Fatal errors by dumping database stats and restartingGiuseppe Bilotta
2006-06-26Fix issue #71 with the proposed patchGiuseppe Bilotta
2006-06-08Do environment checkpointing and log cleanups on save. This should prevent ↵Giuseppe Bilotta
log file proliferation (previous commit [192] only cleaned up the logfiles on quit)
2006-06-08Improved handling of database handling and cleanup during shutdownGiuseppe Bilotta
2006-02-17die, annoyingly large log filesTom Gilbert
2006-02-10use a db env for the databases to avoid some corruption problems (I hope)Tom Gilbert
2005-08-03Thu Aug 04 00:11:52 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Tweaked the debug() stuff a bit. Need to do this more cleanly really * Added a fair bit of documentation for some of the new features
2005-07-27move rbot into lib - still rearranging for packaging/installationTom Gilbert