summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorHernan E Grecco <hernan-edgardo.grecco@mpi-dortmund.mpg.de>2010-05-26 06:28:08 +0800
committerThom Nichols <tmnichols@gmail.com>2010-06-01 22:07:51 +0800
commit71ad715caaeb43517e5175380d3256d8a8cf1141 (patch)
treed1a87e00cf4db1716d04de169ba2fa33e3758af7 /example.py
parentd4520850497523f310706eb2853d8a4e14e4d3bd (diff)
downloadslixmpp-71ad715caaeb43517e5175380d3256d8a8cf1141.tar.gz
slixmpp-71ad715caaeb43517e5175380d3256d8a8cf1141.tar.bz2
slixmpp-71ad715caaeb43517e5175380d3256d8a8cf1141.tar.xz
slixmpp-71ad715caaeb43517e5175380d3256d8a8cf1141.zip
Changed example.py to register first Xep_0030.
This a simple fix to prevent getting a key error as many plugins add features to Xep_0030. A better fix would be to call pos_init after all plugins are loaded. An even better fix would be to define dependencies for each plugin and registering on demand.
Diffstat (limited to 'example.py')
-rw-r--r--example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example.py b/example.py
index 1ffe724a..c9b6559b 100644
--- a/example.py
+++ b/example.py
@@ -37,8 +37,8 @@ if __name__ == '__main__':
logging.basicConfig(level=opts.loglevel, format='%(levelname)-8s %(message)s')
xmpp = Example('user@gmail.com/sleekxmpp', 'password')
+ xmpp.registerPlugin('xep_0030')
xmpp.registerPlugin('xep_0004')
- xmpp.registerPlugin('xep_0030')
xmpp.registerPlugin('xep_0060')
xmpp.registerPlugin('xep_0199')
if xmpp.connect(('talk.google.com', 5222)):