mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Forgot underscore in isNick.
This commit is contained in:
parent
0cfde66a7e
commit
00d186cc42
@ -86,8 +86,8 @@ def nickEqual(nick1, nick2):
|
|||||||
"""Returns True if nick1 == nick2 according to IRC case rules."""
|
"""Returns True if nick1 == nick2 according to IRC case rules."""
|
||||||
return toLower(nick1) == toLower(nick2)
|
return toLower(nick1) == toLower(nick2)
|
||||||
|
|
||||||
_nickchars = r'-[]\`^{}'
|
_nickchars = r'_[]\`^{}|-'
|
||||||
_nickre = re.compile(r'^[%sA-Za-z][%s0-9A-Za-z]+$' % (re.escape(_nickchars),
|
_nickre = re.compile(r'^[A-Za-z%s][0-9A-Za-z%s]+$' % (re.escape(_nickchars),
|
||||||
re.escape(_nickchars)))
|
re.escape(_nickchars)))
|
||||||
def isNick(s):
|
def isNick(s):
|
||||||
"""Returns True if s is a valid IRC nick."""
|
"""Returns True if s is a valid IRC nick."""
|
||||||
|
Loading…
Reference in New Issue
Block a user