# Erebus IRC bot - Author: Erebus Team
# vim: fileencoding=utf-8
-# simple module example
+# Channel list management (add, remove channels)
# This file is released into the public domain; see http://unlicense.org/
# module info
def _part(user, chan):
- chan.bot.chans.remove(chan)
- del lib.parent.chans[chan.name.lower()]
+ chan.deleting = True
lib.parent.query("DELETE FROM chusers WHERE chan = %s", (chan,))
lib.parent.query("DELETE FROM chans WHERE chname = %s", (chan,))
chan.bot.part(chan)