From 49dafb5e821cb225df400f258995c07cb9e4702c Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Thu, 20 Sep 2012 13:18:30 -0400 Subject: [PATCH] listen for 'identify' notice instead of 'register': more generic --- src/irc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc.coffee b/src/irc.coffee index 701375f..c499076 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -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