mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Cosmetic change to a variable name.
This commit is contained in:
parent
0f45fe2c36
commit
6077e2896b
@ -95,11 +95,11 @@ def nickEqual(nick1, nick2):
|
||||
return toLower(nick1) == toLower(nick2)
|
||||
|
||||
_nickchars = r'_[]\`^{}|-'
|
||||
_nickre = re.compile(r'^[A-Za-z%s][0-9A-Za-z%s]*$' % (re.escape(_nickchars),
|
||||
re.escape(_nickchars)))
|
||||
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."""
|
||||
if re.match(_nickre, s):
|
||||
if re.match(nickRe, s):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user