3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 12:12:53 +01:00

main: add a note about irc.connected.wait() and maxnicklen being set

This commit is contained in:
James Lu 2015-07-15 14:00:40 -07:00
parent cd244ee89b
commit 2106b8da3a

View File

@ -37,6 +37,12 @@ class Irc():
self.umodes = {'invisible': 'i', 'snomask': 's', 'wallops': 'w', self.umodes = {'invisible': 'i', 'snomask': 's', 'wallops': 'w',
'oper': 'o', 'oper': 'o',
'*A': '', '*B': '', '*C': 's', '*D': 'iow'} '*A': '', '*B': '', '*C': 's', '*D': 'iow'}
# This nicklen value is only a default, and SHOULD be set by the
# protocol module as soon as the relevant capability information is
# received from the uplink. Plugins that depend on maxnicklen being
# set MUST call "irc.connected.wait()", which blocks until the
# capability information is received. This handling of irc.connected
# is also dependent on the protocol module.
self.maxnicklen = 30 self.maxnicklen = 30
self.prefixmodes = 'ov' self.prefixmodes = 'ov'