mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-20 00:54:45 +01:00
Removed an XXX.
This commit is contained in:
parent
db0426520a
commit
aa83ab2420
@ -850,8 +850,7 @@ class Irc(IrcCommandDispatcher):
|
||||
L = list(nick)
|
||||
while len(L) <= 3:
|
||||
L.append('`')
|
||||
# XXX Should this check ircutils.isNick as well?
|
||||
while ret == nick:
|
||||
while ircutils.strEqual(ret, nick):
|
||||
L[random.randrange(len(L))] = random.choice('0123456789')
|
||||
ret = ''.join(L)
|
||||
return ret
|
||||
|
@ -124,7 +124,6 @@ def isNick(s, strictRfc=True, nicklen=None):
|
||||
ret = len(s) <= nicklen
|
||||
return ret
|
||||
else:
|
||||
# XXX special values to isChannel?
|
||||
return not isChannel(s) and \
|
||||
not isUserHostmask(s) and \
|
||||
not ' ' in s and not '!' in s
|
||||
|
Loading…
Reference in New Issue
Block a user