Skip to content

Commit

Permalink
fixed bug in sasl code
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-belcher committed May 24, 2015
1 parent ca368ca commit 900a57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def __handle_line(self, line):
self.shutdown()
self.send_raw('AUTHENTICATE PLAIN')
elif chunks[0] == 'AUTHENTICATE':
self.send_raw('AUTHENTICATE ' + base64.b64encode(self.nick + '\x00' + self.nick + '\x00' + self.password))
self.send_raw('AUTHENTICATE ' + base64.b64encode(self.nick + '\x00' + self.userrealname[0] + '\x00' + self.password))
elif chunks[1] == '903':
debug('Successfully authenticated')
self.password = None
Expand Down

0 comments on commit 900a57a

Please sign in to comment.