mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 20:22:45 +01:00
IRCCommonProtocol: fix type of maxnicklen
This commit is contained in:
parent
66af57e74f
commit
4cdae540b5
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user