Changed the non-strictRfc implementation of isNick not to allow full hostmasks.

This commit is contained in:
Jeremy Fincher 2004-06-19 03:04:02 +00:00
parent 90a0529696
commit 581a489177
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ def isNick(s, strictRfc=True):
if strictRfc:
return bool(nickRe.match(s))
else:
return not isChannel(s)
return not isChannel(s) and not isUserHostmask(s)
def isChannel(s):
"""Returns True if s is a valid IRC channel name."""