mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 21:22:36 +01:00
pr/insp: save irc.max{nick|chan}len correctly as integers
This commit is contained in:
parent
c655d975a6
commit
d19cabf16c
@ -476,8 +476,8 @@ def handle_events(irc, data):
|
|||||||
protocol_version = int(caps['PROTOCOL'])
|
protocol_version = int(caps['PROTOCOL'])
|
||||||
if protocol_version < 1202:
|
if protocol_version < 1202:
|
||||||
raise ProtocolError("Remote protocol version is too old! At least 1202 (InspIRCd 2.0.x) is needed. (got %s)" % protocol_version)
|
raise ProtocolError("Remote protocol version is too old! At least 1202 (InspIRCd 2.0.x) is needed. (got %s)" % protocol_version)
|
||||||
irc.maxnicklen = caps['NICKMAX']
|
irc.maxnicklen = int(caps['NICKMAX'])
|
||||||
irc.maxchanlen = caps['CHANMAX']
|
irc.maxchanlen = int(caps['CHANMAX'])
|
||||||
# Modes are divided into A, B, C, and D classes
|
# Modes are divided into A, B, C, and D classes
|
||||||
# See http://www.irc.org/tech_docs/005.html
|
# See http://www.irc.org/tech_docs/005.html
|
||||||
# FIXME: Find a better way to assign/store this.
|
# FIXME: Find a better way to assign/store this.
|
||||||
|
Loading…
Reference in New Issue
Block a user