mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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."""
|
||||
return toLower(nick1) == toLower(nick2)
|
||||
|
||||
_nickchars = r'-[]\`^{}'
|
||||
_nickre = re.compile(r'^[%sA-Za-z][%s0-9A-Za-z]+$' % (re.escape(_nickchars),
|
||||
_nickchars = r'_[]\`^{}|-'
|
||||
_nickre = re.compile(r'^[A-Za-z%s][0-9A-Za-z%s]+$' % (re.escape(_nickchars),
|
||||
re.escape(_nickchars)))
|
||||
def isNick(s):
|
||||
"""Returns True if s is a valid IRC nick."""
|
||||
|
Loading…
Reference in New Issue
Block a user