adjust message condition ordering
This commit is contained in:
parent
dc27ffe14a
commit
8b5bd04573
|
@ -158,11 +158,11 @@ class Server(BaseServer):
|
||||||
if (
|
if (
|
||||||
line.command == "PRIVMSG"
|
line.command == "PRIVMSG"
|
||||||
and self.has_channel(line.params[0])
|
and self.has_channel(line.params[0])
|
||||||
|
and self.has_user(line.hostmask.nickname)
|
||||||
and not line.hostmask is None
|
and not line.hostmask is None
|
||||||
and not self.casefold(line.hostmask.nickname) == self.nickname_lower
|
and not self.casefold(line.hostmask.nickname) == self.nickname_lower
|
||||||
and not ("batch" in line.tags and line.tags["batch"] == "1")
|
and not ("batch" in line.tags and line.tags["batch"] == "1")
|
||||||
and not "inspircd.org/bot" in line.tags
|
and not "inspircd.org/bot" in line.tags
|
||||||
and self.has_user(line.hostmask.nickname)
|
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
response = think(line)
|
response = think(line)
|
||||||
|
|
Loading…
Reference in New Issue