From 7d57c8ad2dae829b29e1a45a8399dbb788c8fdf2 Mon Sep 17 00:00:00 2001 From: Jimmy Cao Date: Sun, 4 Sep 2011 00:25:32 -0500 Subject: [PATCH] fix fake nick recognition --- wolfgame.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index 4851164..4919324 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -1785,8 +1785,7 @@ def hvisit(cli, nick, rest): def is_fake_nick(who): - return not( ((who[0].isalpha() or (who[0] in (botconfig.CMD_CHAR, "\\", "_", "`"))) and - not who.lower().endswith("serv"))) + return not(re.search("^[a-zA-Z\\\_\]\[`]([a-zA-Z0-9\\\_\]\[`]+)?", who)) or who.lower().endswith("serv")