is_fake_nick: only all-numeric nicks are fake
The previous check had quite a few issues, e.g. on UID nicks.
This commit is contained in:
parent
62b9b1627d
commit
0669799f1e
@ -3702,7 +3702,7 @@ def hvisit(cli, nick, rest):
|
||||
chk_nightdone(cli)
|
||||
|
||||
def is_fake_nick(who):
|
||||
return not(re.search("^[a-zA-Z\\\_\]\[`]([a-zA-Z0-9\\\_\]\[`]+)?", who)) or who.lower().endswith("serv")
|
||||
return re.match("[0-9]+", who)
|
||||
|
||||
@pmcmd("see")
|
||||
def see(cli, nick, rest):
|
||||
|
Loading…
Reference in New Issue
Block a user