Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0249.py @ 2129:6a66c8c5a567
core: replaced calls to client.xmlstream.send by client.send which is the right method to use. client.xmlstream should not be used directly
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 04 Feb 2017 17:59:13 +0100 |
parents | 48536a22b599 |
children | 6e509ee853a8 |
comparison
equal
deleted
inserted
replaced
2128:aa94f33fd2ad | 2129:6a66c8c5a567 |
---|---|
117 for key, value in options.iteritems(): | 117 for key, value in options.iteritems(): |
118 if key not in ('password', 'reason', 'thread'): | 118 if key not in ('password', 'reason', 'thread'): |
119 log.warning(u"Ignoring invalid invite option: {}".format(key)) | 119 log.warning(u"Ignoring invalid invite option: {}".format(key)) |
120 continue | 120 continue |
121 x_elt[key] = value | 121 x_elt[key] = value |
122 client.xmlstream.send(message) | 122 client.send(message) |
123 | 123 |
124 def _accept(self, room_jid, profile_key=C.PROF_KEY_NONE): | 124 def _accept(self, room_jid, profile_key=C.PROF_KEY_NONE): |
125 """Accept the invitation to join a MUC. | 125 """Accept the invitation to join a MUC. |
126 | 126 |
127 @param room (jid.JID): JID of the room | 127 @param room (jid.JID): JID of the room |