aboutsummaryrefslogtreecommitdiffstats
path: root/server/plugin.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2011-01-19 00:55:21 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2011-01-19 00:55:21 -0500
commit95e74be58e597776ee095790403d499b5d62467f (patch)
tree2cc86a1051bacd494581403bce8d504ef8d06f31 /server/plugin.py
parente745bd6c5c030e62693db351697130e0fa189847 (diff)
downloadalias-95e74be58e597776ee095790403d499b5d62467f.tar.gz
Some more fixes to the component server
Diffstat (limited to 'server/plugin.py')
-rw-r--r--server/plugin.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/plugin.py b/server/plugin.py
index df05908..62ae958 100644
--- a/server/plugin.py
+++ b/server/plugin.py
@@ -44,9 +44,12 @@ class AliasPlugin(base.base_plugin):
self.xmpp.plugin['xep_0030'].add_feature("alias:query")
def handle_alias_query(self, iq):
- callee = base64.b64decode(iq['to'].user)
+ try:
+ callee = base64.b64decode(iq['to'].user)
+ except TypeError:
+ logging.error("callee field not base64 encoded")
caller = iq['alias']['from']
- handler = object.ObjectHandler(callee)
+ handler = object.ObjectHandler(self.config['root'],callee)
node = iq['alias']['node']
if not node:
node = handler.get_home_node()