Tweak definition of is_fake_nick
Doesn't change much, just avoids compiling a regex pattern everytime, and it only calls one function.
This commit is contained in:
parent
9ac1f3fd5b
commit
75447310f3
@ -20,6 +20,8 @@ from src import proxy, debuglog
|
||||
|
||||
# Some miscellaneous helper functions
|
||||
|
||||
is_fake_nick = re.compile(r"^[0-9]+$").search
|
||||
|
||||
def mass_mode(cli, md_param, md_plain):
|
||||
""" Example: mass_mode(cli, [('+v', 'asdf'), ('-v','wobosd')], ['-m']) """
|
||||
lmd = len(md_param) # store how many mode changes to do
|
||||
@ -121,9 +123,6 @@ def is_user_notice(nick):
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_fake_nick(who):
|
||||
return re.search(r"^[0-9]+$", who)
|
||||
|
||||
def in_wolflist(nick, who):
|
||||
myrole = var.get_role(nick)
|
||||
role = var.get_role(who)
|
||||
|
Loading…
x
Reference in New Issue
Block a user