Removed an XXX.

This commit is contained in:
Jeremy Fincher 2004-12-16 09:02:55 +00:00
parent db0426520a
commit aa83ab2420
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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