diff options
author | James Booth <boothj5@gmail.com> | 2013-02-17 03:23:14 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-02-17 03:23:14 +0000 |
commit | c3b7388e6127e0281448321c8994b6f9c77aec7d (patch) | |
tree | adc07e08d407d7493b15df988a5cb361375bb854 /src/xmpp | |
parent | 1edb84efbcf982f4324827436c00975c3d138220 (diff) | |
download | profani-tty-c3b7388e6127e0281448321c8994b6f9c77aec7d.tar.gz |
Added chatstates to capabilities
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/capabilities.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c index a5d99633..52993352 100644 --- a/src/xmpp/capabilities.c +++ b/src/xmpp/capabilities.c @@ -258,17 +258,23 @@ caps_create_query_response_stanza(xmpp_ctx_t * const ctx) xmpp_stanza_set_name(feature_version, STANZA_NAME_FEATURE); xmpp_stanza_set_attribute(feature_version, STANZA_ATTR_VAR, STANZA_NS_VERSION); + xmpp_stanza_t *feature_chatstates = xmpp_stanza_new(ctx); + xmpp_stanza_set_name(feature_chatstates, STANZA_NAME_FEATURE); + xmpp_stanza_set_attribute(feature_chatstates, STANZA_ATTR_VAR, STANZA_NS_CHATSTATES); + xmpp_stanza_add_child(query, identity); xmpp_stanza_add_child(query, feature_muc); xmpp_stanza_add_child(query, feature_discoinfo); xmpp_stanza_add_child(query, feature_caps); xmpp_stanza_add_child(query, feature_version); + xmpp_stanza_add_child(query, feature_chatstates); xmpp_stanza_release(identity); xmpp_stanza_release(feature_muc); xmpp_stanza_release(feature_discoinfo); xmpp_stanza_release(feature_caps); xmpp_stanza_release(feature_version); + xmpp_stanza_release(feature_chatstates); return query; } |