]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
basics: log the fact that we're not joining default channels
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 8 Sep 2009 22:06:42 +0000 (00:06 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 8 Sep 2009 22:06:42 +0000 (00:06 +0200)
This makes it easier to understand why the bot is not joining
when join_after_identify is set to true and the bot is not
identifying.

lib/rbot/core/basics.rb

index de48a5754594feb5e09ffead7c3017e9911c3c1c..d5ff5fb93e3b7feb20993c544c879bd8e8dbf18a 100644 (file)
@@ -30,7 +30,11 @@ class BasicsModule < CoreBotModule
   # identification. Observe that this means the bot may not connect any channels
   # until the 'identified' method gets delegated
   def connect
-    join_channels unless @bot.config['irc.join_after_identify']
+    if @bot.config['irc.join_after_identify']
+      log "waiting for identififcation before JOINing default channels"
+    else
+      join_channels
+    end
   end
 
   def ctcp_listen(m)