fix fake nick recognition

This commit is contained in:
Jimmy Cao 2011-09-04 00:25:32 -05:00
parent 922ec19b7f
commit a967d166dd

View File

@ -1785,8 +1785,7 @@ def hvisit(cli, nick, rest):
def is_fake_nick(who): def is_fake_nick(who):
return not( ((who[0].isalpha() or (who[0] in (botconfig.CMD_CHAR, "\\", "_", "`"))) and return not(re.search("^[a-zA-Z\\\_\]\[`]([a-zA-Z0-9\\\_\]\[`]+)?", who)) or who.lower().endswith("serv")
not who.lower().endswith("serv")))