summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-05 21:57:55 -0700
committerLance Stout <lancestout@gmail.com>2012-06-18 22:00:33 -0700
commit3d2d11f169407d8acd7ab9797398018bd414d974 (patch)
tree36cf065e6849cb62191d5554045a85f240d7a97f
parent181aea737d5bce9479795b58c29b5a92da3bd48b (diff)
downloadslixmpp-3d2d11f169407d8acd7ab9797398018bd414d974.tar.gz
slixmpp-3d2d11f169407d8acd7ab9797398018bd414d974.tar.bz2
slixmpp-3d2d11f169407d8acd7ab9797398018bd414d974.tar.xz
slixmpp-3d2d11f169407d8acd7ab9797398018bd414d974.zip
Update stream features stanza to work with new plugin keys.
-rw-r--r--sleekxmpp/stanza/stream_features.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sleekxmpp/stanza/stream_features.py b/sleekxmpp/stanza/stream_features.py
index 9993c84a..e487721e 100644
--- a/sleekxmpp/stanza/stream_features.py
+++ b/sleekxmpp/stanza/stream_features.py
@@ -6,6 +6,7 @@
See the file LICENSE for copying permission.
"""
+from sleekxmpp.thirdparty import OrderedDict
from sleekxmpp.xmlstream import StanzaBase
@@ -28,7 +29,10 @@ class StreamFeatures(StanzaBase):
def get_features(self):
"""
"""
- return self.plugins
+ features = OrderedDict()
+ for (name, lang), plugin in self.plugins.items():
+ features[name] = plugin
+ return features
def set_features(self, value):
"""