diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2010-11-13 16:13:51 +0100 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2010-11-13 16:13:51 +0100 |
| commit | 6df487cc8ccabc7cc3f9b139d01038796b439c97 (patch) | |
| tree | fea2404f99ddcf030448167ec80a2c0cafcde784 /server.py | |
| parent | 52f39a51946a1beca293dccefb859cf35bb49d63 (diff) | |
| download | alias-6df487cc8ccabc7cc3f9b139d01038796b439c97.tar.gz | |
Small bug in subscription reply (the subscription acceptation wasn't sent back)
Diffstat (limited to 'server.py')
| -rw-r--r-- | server.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,7 +22,7 @@ class ObjectComponent(ComponentXMPP): for user in self.userHandler.getUserList() : self.sendPresence(pto = user, ptype = "unavailable") XMLStream.disconnect(self, reconnect) - + def message(self, msg): msg.reply("Thanks for sending\n%(body)s" % msg).send() @@ -30,7 +30,7 @@ class ObjectComponent(ComponentXMPP): if subscription["type"] == "subscribe" : userJID = subscription["from"].full self.userHandler.register(userJID) - subscription.reply() + subscription.reply().send() self.sendPresence(pto = userJID) self.sendPresenceSubscription(pto=userJID, ptype="subscribe") if subscription["type"] == "unsubscribe" : |
