Even when not strict, spaces can't be in nicks.

This commit is contained in:
Jeremy Fincher 2004-09-12 05:48:36 +00:00
parent 8bbed5a90e
commit 39f427d4be

View File

@ -122,7 +122,7 @@ def isNick(s, strictRfc=True, nicklen=None):
ret = len(s) <= nicklen
return ret
else:
return not isChannel(s) and not isUserHostmask(s)
return not isChannel(s) and not isUserHostmask(s) and not ' ' in s
def isChannel(s, chantypes='#&+!'):
"""Returns True if s is a valid IRC channel name."""