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
committerNathan Fritz <fritzy@netflint.net>2010-05-26 06:49:01 +0800
commit9cfe19c1e14f7045684ed523b65cdbdf3ab48b2e (patch)
tree757b2fdcf3b996d062d6705e81b015eb7066421b /example.py
parentf18c79082490b9b25c72d8c8870dcbf63770ffb6 (diff)
downloadslixmpp-9cfe19c1e14f7045684ed523b65cdbdf3ab48b2e.tar.gz
slixmpp-9cfe19c1e14f7045684ed523b65cdbdf3ab48b2e.tar.bz2
slixmpp-9cfe19c1e14f7045684ed523b65cdbdf3ab48b2e.tar.xz
slixmpp-9cfe19c1e14f7045684ed523b65cdbdf3ab48b2e.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)):