Forgot underscore in isNick.

This commit is contained in:
Jeremy Fincher 2003-06-02 05:31:13 +00:00
parent 0cfde66a7e
commit 00d186cc42

View File

@ -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."""