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:
Janik Kleinhoff 2014-09-17 22:00:24 +02:00
parent 62b9b1627d
commit 0669799f1e

View File

@ -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):