mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +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
|
||||
return ret
|
||||
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='#&+!'):
|
||||
"""Returns True if s is a valid IRC channel name."""
|
||||
|
Loading…
Reference in New Issue
Block a user