]> jfr.im git - erebus.git/blobdiff - erebus.py
fix exception when parting a channel
[erebus.git] / erebus.py
index 12be844b4388acf1fd77980abb4731cb80eed7b5..9c9f46fee900ce31943abd6a5c22482ad42d91db 100644 (file)
--- a/erebus.py
+++ b/erebus.py
@@ -124,6 +124,8 @@ class Erebus(object): #singleton to pass around
                        self.voices = []
                        self.ops = []
 
+                       self.deleting = False # if true, the bot will remove cached records of this channel when the bot sees that it has left the channel
+
                        c = main.query("SELECT user, level FROM chusers WHERE chan = %s", (self.name,))
                        if c:
                                row = c.fetchone()