mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Slight tweak to make a test in test_Channel.py pass.
This commit is contained in:
parent
ab3e0289f1
commit
1ba0fccd34
@ -122,7 +122,9 @@ 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) and not ' ' in s
|
return not isChannel(s) and \
|
||||||
|
not isUserHostmask(s) and \
|
||||||
|
not ' ' in 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