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