aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2010-11-13 16:13:51 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2010-11-13 16:13:51 +0100
commit6df487cc8ccabc7cc3f9b139d01038796b439c97 (patch)
treefea2404f99ddcf030448167ec80a2c0cafcde784
parent52f39a51946a1beca293dccefb859cf35bb49d63 (diff)
downloadalias-6df487cc8ccabc7cc3f9b139d01038796b439c97.tar.gz
Small bug in subscription reply (the subscription acceptation wasn't sent back)
-rw-r--r--server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.py b/server.py
index ee7d7c2..a19bb1e 100644
--- a/server.py
+++ b/server.py
@@ -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" :