mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Changed the non-strictRfc implementation of isNick not to allow full hostmasks.
This commit is contained in:
parent
90a0529696
commit
581a489177
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user