Update stream features stanza to work with new plugin keys.

This commit is contained in:
Lance Stout 2012-06-05 21:57:55 -07:00
parent 181aea737d
commit 3d2d11f169

View file

@ -6,6 +6,7 @@
See the file LICENSE for copying permission. See the file LICENSE for copying permission.
""" """
from sleekxmpp.thirdparty import OrderedDict
from sleekxmpp.xmlstream import StanzaBase from sleekxmpp.xmlstream import StanzaBase
@ -28,7 +29,10 @@ class StreamFeatures(StanzaBase):
def get_features(self): 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): def set_features(self, value):
""" """