Blacklist channels we are kicked from
This commit is contained in:
parent
1ce5a8228c
commit
1b77c50552
|
@ -220,6 +220,12 @@ class IRCBot(IRCClient):
|
||||||
castDup = deepcopy(cast)
|
castDup = deepcopy(cast)
|
||||||
castDup["mtype"] = cast["type"]
|
castDup["mtype"] = cast["type"]
|
||||||
castDup["type"] = "self"
|
castDup["type"] = "self"
|
||||||
|
if self.net in main.blacklist.keys():
|
||||||
|
if cast["channel"] not in main.blacklist[self.net]:
|
||||||
|
main.blacklist[self.net].append(cast["channel"])
|
||||||
|
else:
|
||||||
|
main.blacklist[self.net] = [cast["channel"]]
|
||||||
|
main.saveConf("blacklist")
|
||||||
self.event(**castDup)
|
self.event(**castDup)
|
||||||
|
|
||||||
# we sent a message/left/joined/kick someone/quit
|
# we sent a message/left/joined/kick someone/quit
|
||||||
|
|
Loading…
Reference in New Issue