summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0033.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0033.py')
-rw-r--r--sleekxmpp/plugins/xep_0033.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0033.py b/sleekxmpp/plugins/xep_0033.py
index feef5a13..9276b807 100644
--- a/sleekxmpp/plugins/xep_0033.py
+++ b/sleekxmpp/plugins/xep_0033.py
@@ -42,6 +42,8 @@ class Addresses(ElementBase):
self.delAddresses(set_type)
for addr in addresses:
addr = dict(addr)
+ if 'lang' in addr:
+ del addr['lang']
# Remap 'type' to 'atype' to match the add method
if set_type is not None:
addr['type'] = set_type