summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0078.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-05-26 21:34:01 +0800
committerNathan Fritz <fritzy@netflint.net>2010-05-31 05:30:45 +0800
commitfd573880ebcf0c4885da3b22ee6d07a34091d9bd (patch)
treee9ad15114b8ba4134b3a5094de830bb9263c4c8c /sleekxmpp/plugins/xep_0078.py
parent2f1ba368e2adbac27434f70753a6497c0a257301 (diff)
downloadslixmpp-fd573880ebcf0c4885da3b22ee6d07a34091d9bd.tar.gz
slixmpp-fd573880ebcf0c4885da3b22ee6d07a34091d9bd.tar.bz2
slixmpp-fd573880ebcf0c4885da3b22ee6d07a34091d9bd.tar.xz
slixmpp-fd573880ebcf0c4885da3b22ee6d07a34091d9bd.zip
Updated the XEP-0030 plugin to work with stanza objects instead of manipulating XML directly.
Four new events have been added: disco_info - A disco#info result has been received disco_info_request - A disco#info request has been received disco_items - A disco#items result has been received disco_items_request - A disco#items request has been received For disco_info_request and disco_items_request two default handlers are registered. These handlers will only run if they are the only handler for these two events so that multiple responses are not returned and cause errors. In your own handlers for these two events, you can call the default handlers to preserve the static node behaviour as so: self.plugin['xep_0030'].handle_disco_info(iq, True) The forwarded=True will disable the check for other registered handlers. Agents can now dynamically respond to disco requests by using these events. (cherry picked from commit 0fc3381492a8bd75e6a9858539a972334881d8ff)
Diffstat (limited to 'sleekxmpp/plugins/xep_0078.py')
0 files changed, 0 insertions, 0 deletions