Add handle_presence_subscribed test

darcs-hash:20061130215636-86b55-55c02e41cd14be5b752f1a187ef3834abb632425.gz
This commit is contained in:
David Rousselie
2006-11-30 22:56:36 +01:00
parent 04fee565a7
commit 717e1543d3
2 changed files with 7 additions and 12 deletions

View File

@@ -535,17 +535,6 @@ class JCLComponent(Component, object):
"""Handle subscribed presence from user
"""
self.__logger.debug("PRESENCE_SUBSCRIBED")
name = stanza.get_to().node
from_jid = stanza.get_from()
base_from_jid = unicode(from_jid.bare())
# accounts = self.account_class.select(\
# self.account_class.q.user_jid == base_from_jid
# and self.account_class.q.name == name)
# if accounts.count() >= 1:
# _account = list(accounts)[0]
# self._send_presence_available(_account, "show", lang_class)
# TODO : send presence available to subscribed user
# is it necessary to send available presence ?
return 1
def handle_presence_unsubscribe(self, stanza):