probably fix crash when someone quits
[mikachu/bricker.git] / bricker.py
index 33596aa..a44e472 100755 (executable)
@@ -253,6 +253,7 @@ class Bricker(object):
 
   def _on_quit(self, connection, event):
     nick = irclib.nm_to_n(event.source())
+    channel = event.target()
     print 'quit %s' % nick
     if nick == self._nick:
       self._channels[channel] = False