X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/c9c79ad54d32ab444581bd5a19f85d8b36834bcd..52c80cff91dce5fa14ae903c6c2bf20533ccca46:/bot.py diff --git a/bot.py b/bot.py index fbb3999..fd92922 100644 --- a/bot.py +++ b/bot.py @@ -247,6 +247,10 @@ class Bot(object): for u in chan.users: if u.nick != self.nick: self._clientLeft(u.nick, chan) + if chan.deleting: + chan.bot.chans.remove(chan) + del self.parent.chans[chan.name.lower()] + del chan else: user = self.parent.user(nick) gone = user.part(chan)