mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-02 00:11:04 -05: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:
|
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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user