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

View File

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