Skip to content

Commit

Permalink
Fix irc.mozilla.org login (and probably others)
Browse files Browse the repository at this point in the history
  • Loading branch information
saebekassebil committed Oct 25, 2012
1 parent 57bfa43 commit 6cef98f
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 6cef98f

Please sign in to comment.