]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit - lib/rbot/ircbot.rb
ircbot: refactor and clean up botclass dir handling
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 14 Feb 2009 22:56:49 +0000 (23:56 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 14 Feb 2009 23:15:44 +0000 (00:15 +0100)
commit38be7f6511447d98780a069bccefecd933238e30
tree06d267fedb78a351808dee1f646551f618f98587
parent3fd5bf9fbacc4866f1aa09b416ad2be4aa5bc5fc
ircbot: refactor and clean up botclass dir handling

Use File.join across the board, and refactor some botclass directory
handling. Most important changes:
 * failure to create the registry and safe_save directory is now fatal;
 * failure to create the local plugin directory prevents it from being
   added to the plugin path (with a warning);
 * botclass directory update from templates is now a standalone routine
   called during init, making it possible to use it in other cases too.
lib/rbot/ircbot.rb