mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
relay: prefix nicks starting with - (this is invalid)
This commit is contained in:
parent
c9b6695f90
commit
1a0983b8e9
@ -111,10 +111,11 @@ def normalizeNick(irc, netname, nick, separator=None, uid=''):
|
||||
separator = separator.replace('/', fallback_separator)
|
||||
nick = nick.replace('/', fallback_separator)
|
||||
|
||||
if nick.startswith(tuple(string.digits)):
|
||||
if nick.startswith(tuple(string.digits+'-')):
|
||||
# On TS6 IRCds, nicks that start with 0-9 are only allowed if
|
||||
# they match the UID of the originating server. Otherwise, you'll
|
||||
# get nasty protocol violation SQUITs!
|
||||
# Nicks starting with - are likewise not valid.
|
||||
nick = '_' + nick
|
||||
|
||||
suffix = separator + netname
|
||||
|
Loading…
Reference in New Issue
Block a user