Update plugins to use session_bind handler for disco, and use plugin_end

This commit is contained in:
Lance Stout
2012-07-10 01:37:44 -07:00
parent 5df3839b7a
commit e8a3e92ceb
33 changed files with 221 additions and 26 deletions

View File

@@ -36,6 +36,10 @@ class XEP_0256(BasePlugin):
self._initial_presence = set()
def plugin_end(self):
self.xmpp.del_filter('out', self._initial_presence_activity)
self.xmpp.del_event_handler('connected', self._reset_presence_activity)
def _reset_presence_activity(self, e):
self._initial_presence = set()