3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-26 04:32:51 +01:00

IRCCommonProtocol: fix type of maxnicklen

This commit is contained in:
James Lu 2017-07-03 13:07:38 -07:00
parent 66af57e74f
commit 4cdae540b5

View File

@ -237,7 +237,7 @@ class IRCCommonProtocol(IRCNetwork):
if 'NICKLEN' in newcaps: if 'NICKLEN' in newcaps:
# Handle NICKLEN=number # Handle NICKLEN=number
assert newcaps['NICKLEN'], "Got NICKLEN tag with no content?" assert newcaps['NICKLEN'], "Got NICKLEN tag with no content?"
self.maxnicklen = newcaps['NICKLEN'] self.maxnicklen = int(newcaps['NICKLEN'])
log.debug('(%s) handle_005: got %r for maxnicklen', self.name, self.maxnicklen) log.debug('(%s) handle_005: got %r for maxnicklen', self.name, self.maxnicklen)
if 'DEAF' in newcaps: if 'DEAF' in newcaps: