diff options
author | Hernan E Grecco <hernan-edgardo.grecco@mpi-dortmund.mpg.de> | 2010-05-26 06:28:08 +0800 |
---|---|---|
committer | Thom Nichols <tmnichols@gmail.com> | 2010-06-01 22:07:51 +0800 |
commit | 71ad715caaeb43517e5175380d3256d8a8cf1141 (patch) | |
tree | d1a87e00cf4db1716d04de169ba2fa33e3758af7 | |
parent | d4520850497523f310706eb2853d8a4e14e4d3bd (diff) | |
download | slixmpp-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.
-rw-r--r-- | example.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)): |