Skip to content

Commit

Permalink
listen for 'identify' notice instead of 'register': more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesob committed Sep 20, 2012
1 parent 2ce86eb commit 49dafb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class IrcBot extends Adapter
identify_args += "#{options.nickpass}"

bot.addListener 'notice', (from, to, text) ->
if from is 'NickServ' and text.indexOf('registered') isnt -1
if from is 'NickServ' and text.indexOf('identify') isnt -1
bot.say 'NickServ', "identify #{identify_args}"
else if options.nickpass and from is 'NickServ' and
(text.indexOf('Password accepted') isnt -1 or
Expand Down

0 comments on commit 49dafb5

Please sign in to comment.