Skip to content

Commit

Permalink
Merge pull request nandub#47 from saebekassebil/master
Browse files Browse the repository at this point in the history
Fix NickServ IDENTIFY messages for irc.mozilla.org - Fixes nandub#46
  • Loading branch information
jgable committed Oct 25, 2012
2 parents 57bfa43 + 6cef98f commit 2d3dfa5
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('identify') isnt -1
if from is 'NickServ' and text.toLowerCase().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 2d3dfa5

Please sign in to comment.