Send room destroy iq on /room config cancel

This commit is contained in:
James Booth
2014-09-03 20:29:17 +01:00
parent 09c10f62f2
commit aa9f1dfa06
5 changed files with 44 additions and 0 deletions

View File

@@ -74,6 +74,7 @@
#define STANZA_NAME_PASSWORD "password"
#define STANZA_NAME_CONFERENCE "conference"
#define STANZA_NAME_VALUE "value"
#define STANZA_NAME_DESTROY "destroy"
// error conditions
#define STANZA_NAME_BAD_REQUEST "bad-request"
@@ -204,6 +205,8 @@ gboolean stanza_muc_requires_config(xmpp_stanza_t * const stanza);
char * stanza_get_new_nick(xmpp_stanza_t * const stanza);
xmpp_stanza_t* stanza_create_instant_room_request_iq(xmpp_ctx_t *ctx,
const char * const room_jid);
xmpp_stanza_t* stanza_create_instant_room_destroy_iq(xmpp_ctx_t *ctx,
const char * const room_jid);
int stanza_get_idle_time(xmpp_stanza_t * const stanza);
char * stanza_get_caps_str(xmpp_stanza_t * const stanza);