3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +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:
# Handle NICKLEN=number
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)
if 'DEAF' in newcaps: