If BitBot is kicked from a channel, remove from channel_save
This commit is contained in:
parent
464510cd80
commit
3c138c1d18
1 changed files with 5 additions and 0 deletions
|
@ -31,3 +31,8 @@ class Module(object):
|
||||||
event["server"].send_join(
|
event["server"].send_join(
|
||||||
",".join(channels_sorted), ",".join(keys_sorted))
|
",".join(channels_sorted), ",".join(keys_sorted))
|
||||||
|
|
||||||
|
def on_kick(self, event):
|
||||||
|
channels = event["server"].get_setting("autojoin", [])
|
||||||
|
if event["channel"].name in channels:
|
||||||
|
channels.remove(event["channel"].name)
|
||||||
|
event["server"].set_setting("autojoin", channels)
|
||||||
|
|
Loading…
Reference in a new issue