diff options
author | James Booth <boothj5@gmail.com> | 2013-01-20 00:57:44 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-20 00:57:44 +0000 |
commit | f967395f0f99a7eba7aa6ea1c006b39b142f56d5 (patch) | |
tree | c0f1c36ea2665b27d228009754543fa62fac0f5e /src/jabber.c | |
parent | 22589e879822a89212c49030dabee3db0c10f8e8 (diff) | |
download | profani-tty-f967395f0f99a7eba7aa6ea1c006b39b142f56d5.tar.gz |
Added check whether caps cached
Diffstat (limited to 'src/jabber.c')
-rw-r--r-- | src/jabber.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jabber.c b/src/jabber.c index a85ecbed..d5fb23ce 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -26,6 +26,7 @@ #include <strophe.h> +#include "capabilities.h" #include "chat_session.h" #include "common.h" #include "contact_list.h" @@ -1069,6 +1070,12 @@ _presence_handler(xmpp_conn_t * const conn, } } + if (caps_str != NULL) { + if (!caps_contains(caps_str)) { + // send iq request for caps info + } + } + xmpp_stanza_t *status = xmpp_stanza_get_child_by_name(stanza, STANZA_NAME_STATUS); if (status != NULL) status_str = xmpp_stanza_get_text(status); |