diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2010-11-09 12:27:07 +0100 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2010-11-09 12:27:07 +0100 |
| commit | b5fdec3743697c438519bc47daecf50b598b32fb (patch) | |
| tree | da256991a47b0847f04681aa1456aacd68ecfecf /server.py | |
| parent | 15ae8d0c1075d4002d614964c33b13326866110d (diff) | |
| download | alias-b5fdec3743697c438519bc47daecf50b598b32fb.tar.gz | |
Correct small bug for component presence (due to the sleekxmpp doc being outdated)
Now you should be able to subscribe to and see the component presence.
Diffstat (limited to 'server.py')
| -rw-r--r-- | server.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,13 +18,13 @@ class ObjectComponent(ComponentXMPP): def presenceSubscription(self, subscription) : if subscription["type"] == "subscribe" : - userJID = subscription["from"].jid + userJID = subscription["from"].full self.sendPresenceSubscription(pto=userJID, ptype="subscribed") self.sendPresence(pto = userJID) self.sendPresenceSubscription(pto=userJID, ptype="subscribe") - + def presenceProbe(self, event): - self.sendPresence(pto = event["from"]) + self.sendPresence(pto = event["from"].full) if __name__ == '__main__' : |
