aboutsummaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2010-11-23 00:10:03 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2010-11-23 00:10:03 -0500
commita5b4d8b2d4cda356afddcdab4864d27e165237f7 (patch)
tree0b1de82863ab3e199418b20739b4b67e668c426d /plugin.py
parentf9ca13084a102cd453b10102c708ef3004405080 (diff)
downloadalias-a5b4d8b2d4cda356afddcdab4864d27e165237f7.tar.gz
Advertise alias in service discovery
Diffstat (limited to 'plugin.py')
-rw-r--r--plugin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin.py b/plugin.py
index 5b909cf..df05908 100644
--- a/plugin.py
+++ b/plugin.py
@@ -38,6 +38,10 @@ class AliasPlugin(base.base_plugin):
AliasQuery.namespace))
self.xmpp.register_handler(Callback('Alias queries', query_parser,
self.handle_alias_query))
+
+ def post_init(self):
+ base.base_plugin.post_init(self)
+ self.xmpp.plugin['xep_0030'].add_feature("alias:query")
def handle_alias_query(self, iq):
callee = base64.b64decode(iq['to'].user)