mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-26 04:32:51 +01:00
parent
5eee8000dd
commit
4d7d7ce428
@ -28,8 +28,10 @@ utils.whois_handlers.append(relayWhoisHandlers)
|
|||||||
def normalizeNick(irc, netname, nick, separator=None, oldnick=''):
|
def normalizeNick(irc, netname, nick, separator=None, oldnick=''):
|
||||||
# Block until we know the IRC network's nick length (after capabilities
|
# Block until we know the IRC network's nick length (after capabilities
|
||||||
# are sent)
|
# are sent)
|
||||||
log.debug('(%s) normalizeNick: waiting for irc.connected', irc.name)
|
if not hasattr(irc, 'relay_waitFinished'):
|
||||||
irc.connected.wait(1)
|
log.debug('(%s) normalizeNick: waiting for irc.connected', irc.name)
|
||||||
|
irc.connected.wait(1)
|
||||||
|
irc.relay_waitFinished = True
|
||||||
|
|
||||||
separator = separator or irc.serverdata.get('separator') or "/"
|
separator = separator or irc.serverdata.get('separator') or "/"
|
||||||
log.debug('(%s) normalizeNick: using %r as separator.', irc.name, separator)
|
log.debug('(%s) normalizeNick: using %r as separator.', irc.name, separator)
|
||||||
|
Loading…
Reference in New Issue
Block a user