diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-09-09 00:06:42 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-09-09 00:06:42 +0200 |
commit | 4ff73e4ef177a4bc07e90fd3133874e326448640 (patch) | |
tree | fb81a6f0b32ace1f480876c78316da6515619a94 /lib/rbot | |
parent | 93cc91e6eaa4dbdaae59788a1cd37a8b46f6a435 (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.rb | 6 |
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) |