mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-25 19:54:25 +01:00
parent
ab982662b1
commit
523c1d2b13
@ -129,7 +129,7 @@ def die(irc=None):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
log.debug('relay.die: failed to clear persistent channels:', exc_info=True)
|
log.debug('relay.die: failed to clear persistent channels:', exc_info=True)
|
||||||
|
|
||||||
IRC_ASCII_ALLOWED_CHARS = string.digits + string.ascii_letters + '/^|\\-_[]{}`'
|
IRC_ASCII_ALLOWED_CHARS = string.digits + string.ascii_letters + '^|\\-_[]{}`'
|
||||||
FALLBACK_SEPARATOR = '|'
|
FALLBACK_SEPARATOR = '|'
|
||||||
FALLBACK_CHARACTER = '-'
|
FALLBACK_CHARACTER = '-'
|
||||||
|
|
||||||
@ -215,7 +215,7 @@ def normalize_nick(irc, netname, nick, times_tagged=0, uid=''):
|
|||||||
# Loop over every character in the nick, making sure that it only contains valid
|
# Loop over every character in the nick, making sure that it only contains valid
|
||||||
# characters.
|
# characters.
|
||||||
if not is_unicode_capable:
|
if not is_unicode_capable:
|
||||||
nick = _sanitize(nick)
|
nick = _sanitize(nick, extrachars='/')
|
||||||
else:
|
else:
|
||||||
# UnrealIRCd 4's forbidden nick chars, from
|
# UnrealIRCd 4's forbidden nick chars, from
|
||||||
# https://github.com/unrealircd/unrealircd/blob/02d69e7d8/src/modules/charsys.c#L152-L163
|
# https://github.com/unrealircd/unrealircd/blob/02d69e7d8/src/modules/charsys.c#L152-L163
|
||||||
|
Loading…
Reference in New Issue
Block a user