Skip to content

Commit

Permalink
Merge pull request nandub#3 from mrtazz/fix-freenode-room-join
Browse files Browse the repository at this point in the history
fix room join for freenode channels
  • Loading branch information
tombell committed Nov 30, 2011
2 parents 03638b0 + e2df065 commit 2693d5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ class IrcBot extends Adapter
bot.addListener 'notice', (from, to, text) ->
if from is 'NickServ' and text.indexOf('registered') isnt -1
bot.say 'NickServ', "identify #{options.nickpass}"
else if options.nickpass and from is 'NickServ' and text.indexOf('Password accepted') isnt -1
else if options.nickpass and from is 'NickServ' and
(text.indexOf('Password accepted') isnt -1 or
text.indexOf('identified') isnt -1)
for room in options.rooms
@join room

Expand Down

0 comments on commit 2693d5a

Please sign in to comment.