Slight tweak to make a test in test_Channel.py pass.

This commit is contained in:
Jeremy Fincher 2004-09-16 14:29:13 +00:00
parent ab3e0289f1
commit 1ba0fccd34
1 changed files with 3 additions and 1 deletions

View File

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