summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-10-04 19:47:11 +0200
committermathieui <mathieui@mathieui.net>2016-10-04 19:47:11 +0200
commit5ef01ecdd1b3c8cfd912a135ccd85bcd8c3ff3f8 (patch)
tree7668ffbb5dfa51950485e5c8aa25d782403ae217
parent62aafe0ee72bdcd0138484a5d0bd775b1bc95ec7 (diff)
downloadslixmpp-5ef01ecdd1b3c8cfd912a135ccd85bcd8c3ff3f8.tar.gz
slixmpp-5ef01ecdd1b3c8cfd912a135ccd85bcd8c3ff3f8.tar.bz2
slixmpp-5ef01ecdd1b3c8cfd912a135ccd85bcd8c3ff3f8.tar.xz
slixmpp-5ef01ecdd1b3c8cfd912a135ccd85bcd8c3ff3f8.zip
Fix XEP-0033
Re-add relevant stanza methods, broken in 7cd1cf32ae69
-rw-r--r--slixmpp/plugins/xep_0033/stanza.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0033/stanza.py b/slixmpp/plugins/xep_0033/stanza.py
index 7bb31566..50c7b6db 100644
--- a/slixmpp/plugins/xep_0033/stanza.py
+++ b/slixmpp/plugins/xep_0033/stanza.py
@@ -117,9 +117,12 @@ for atype in ('all', 'bcc', 'cc', 'noreply', 'replyroom', 'replyto', 'to'):
setattr(Addresses, "set_%s" % atype, set_multi)
setattr(Addresses, "del_%s" % atype, del_multi)
- # To retain backwards compatibility:
if atype == 'all':
Addresses.interfaces.add('addresses')
+ setattr(Addresses, "get_addresses", get_multi)
+ setattr(Addresses, "set_addresses", set_multi)
+ setattr(Addresses, "del_addresses", del_multi)
+
register_stanza_plugin(Addresses, Address, iterable=True)