diff options
author | James Booth <boothj5@gmail.com> | 2015-03-09 23:07:51 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-03-09 23:07:51 +0000 |
commit | 3c1e8c4e154600b8b7aeb60bbf316e39a97ece27 (patch) | |
tree | 31f04865b57c087da8ea9d69c7f9d8e64864510b /src/xmpp/stanza.c | |
parent | 2c19fad6d63ca3d7ca3e59afd5b371892991411f (diff) | |
download | profani-tty-3c1e8c4e154600b8b7aeb60bbf316e39a97ece27.tar.gz |
Added server error handling when setting /carbons preference
Diffstat (limited to 'src/xmpp/stanza.c')
-rw-r--r-- | src/xmpp/stanza.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index f1aa9cf4..9b1431a9 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -201,10 +201,10 @@ stanza_create_bookmarks_pubsub_add(xmpp_ctx_t *ctx, const char * const jid, xmpp_stanza_t * stanza_enable_carbons(xmpp_ctx_t *ctx){ xmpp_stanza_t *iq = xmpp_stanza_new(ctx); - char *id = create_unique_id(NULL); + char *id = create_unique_id("carbons"); xmpp_stanza_set_name(iq, STANZA_NAME_IQ); - xmpp_stanza_set_type(iq, STANZA_TYPE_SET); + xmpp_stanza_set_type(iq, STANZA_TYPE_SET); xmpp_stanza_set_id(iq, id); free(id); @@ -220,10 +220,10 @@ stanza_enable_carbons(xmpp_ctx_t *ctx){ xmpp_stanza_t * stanza_disable_carbons(xmpp_ctx_t *ctx){ xmpp_stanza_t *iq = xmpp_stanza_new(ctx); - char *id = create_unique_id(NULL); + char *id = create_unique_id("carbons"); xmpp_stanza_set_name(iq, STANZA_NAME_IQ); - xmpp_stanza_set_type(iq, STANZA_TYPE_SET); + xmpp_stanza_set_type(iq, STANZA_TYPE_SET); xmpp_stanza_set_id(iq, id); free(id); |