changeset 1778:442303b62a16

plugin XEP-0060: fixed extra mam filters parsing
author Goffi <goffi@goffi.org>
date Thu, 07 Jan 2016 16:19:43 +0100
parents 8b18e5f55a90
children 1fa50da8bfbe
files src/plugins/plugin_xep_0060.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0060.py	Tue Jan 05 23:20:22 2016 +0100
+++ b/src/plugins/plugin_xep_0060.py	Thu Jan 07 16:19:43 2016 +0100
@@ -161,9 +161,9 @@
             except KeyError:
                 pass
 
-            for name, value in extra:
+            for name, value in extra.iteritems():
                 if name.startswith(MAM_FILTER):
-                    var = name[len[MAM_FILTER]:]
+                    var = name[len(MAM_FILTER):]
                     extra_fields = mam_args.setdefault('extra_fields', [])
                     extra_fields.append(data_form.Field(var=var, value=value))