summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-09-09 00:06:42 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-09-09 00:06:42 +0200
commit4ff73e4ef177a4bc07e90fd3133874e326448640 (patch)
treefb81a6f0b32ace1f480876c78316da6515619a94 /lib/rbot
parent93cc91e6eaa4dbdaae59788a1cd37a8b46f6a435 (diff)
basics: log the fact that we're not joining default channels
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.
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/basics.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rbot/core/basics.rb b/lib/rbot/core/basics.rb
index de48a575..d5ff5fb9 100644
--- a/lib/rbot/core/basics.rb
+++ b/lib/rbot/core/basics.rb
@@ -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)