mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Fix previous commit (again)
This commit is contained in:
parent
4b10ea3329
commit
66e46e5143
@ -906,9 +906,9 @@ class Irc(IrcCommandDispatcher):
|
|||||||
if not self.sasl_username:
|
if not self.sasl_username:
|
||||||
log.error('SASL username is not set, unable to identify.')
|
log.error('SASL username is not set, unable to identify.')
|
||||||
else:
|
else:
|
||||||
auth_string = base64.b64encode('%s\x00%s\x00%s'.encode(
|
auth_string = base64.b64encode(('%s\x00%s\x00%s' %
|
||||||
'utf-8') % (self.sasl_username, self.sasl_username,
|
(self.sasl_username, self.sasl_username,
|
||||||
self.sasl_password))
|
self.sasl_password)).encode('utf-8'))
|
||||||
log.debug('Sending CAP REQ command, requesting capability \'sasl\'.')
|
log.debug('Sending CAP REQ command, requesting capability \'sasl\'.')
|
||||||
self.queueMsg(ircmsgs.IrcMsg(command="CAP", args=('REQ', 'sasl')))
|
self.queueMsg(ircmsgs.IrcMsg(command="CAP", args=('REQ', 'sasl')))
|
||||||
log.debug('Sending AUTHENTICATE command, using mechanism PLAIN.')
|
log.debug('Sending AUTHENTICATE command, using mechanism PLAIN.')
|
||||||
|
Loading…
Reference in New Issue
Block a user