mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Even when not strict, spaces can't be in nicks.
This commit is contained in:
parent
8bbed5a90e
commit
39f427d4be
@ -122,7 +122,7 @@ def isNick(s, strictRfc=True, nicklen=None):
|
|||||||
ret = len(s) <= nicklen
|
ret = len(s) <= nicklen
|
||||||
return ret
|
return ret
|
||||||
else:
|
else:
|
||||||
return not isChannel(s) and not isUserHostmask(s)
|
return not isChannel(s) and not isUserHostmask(s) and not ' ' in s
|
||||||
|
|
||||||
def isChannel(s, chantypes='#&+!'):
|
def isChannel(s, chantypes='#&+!'):
|
||||||
"""Returns True if s is a valid IRC channel name."""
|
"""Returns True if s is a valid IRC channel name."""
|
||||||
|
Loading…
Reference in New Issue
Block a user