fix fake nick recognition
This commit is contained in:
parent
922ec19b7f
commit
a967d166dd
@ -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")))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user