Don't discard server messages
This commit is contained in:
@@ -220,10 +220,10 @@ class IRCBot(IRCClient):
|
||||
# remove server stuff
|
||||
if "muser" in cast.keys():
|
||||
if cast["muser"] == self.servername:
|
||||
return
|
||||
cast["type"] = "conn"
|
||||
if "channel" in cast.keys():
|
||||
if cast["channel"] == "*":
|
||||
return
|
||||
cast["type"] = "conn"
|
||||
##
|
||||
|
||||
# expand out the hostmask
|
||||
@@ -254,7 +254,7 @@ class IRCBot(IRCClient):
|
||||
|
||||
# don't reprocess the same message twice
|
||||
# if the type is in that list, it's already been here, don't run it again
|
||||
if not cast["type"] in {"query", "self", "highlight", "znc", "who"}:
|
||||
if not cast["type"] in {"query", "self", "highlight", "znc", "who", "conn"}:
|
||||
cast["num"] = self.num
|
||||
if "channel" in cast.keys():
|
||||
if cast["type"] == "mode":
|
||||
@@ -279,7 +279,7 @@ class IRCBot(IRCClient):
|
||||
|
||||
# TODO: better way to do this
|
||||
# as we changed the types above, check again
|
||||
if not cast["type"] in {"query", "self", "highlight", "znc", "who"}:
|
||||
if not cast["type"] in {"query", "self", "highlight", "znc", "who", "conn"}:
|
||||
# we have been kicked
|
||||
if "user" in cast.keys():
|
||||
if cast["user"].lower() == self.nickname.lower():
|
||||
|
||||
Reference in New Issue
Block a user