Moved chat room leave presence creation to stanza module

This commit is contained in:
James Booth
2012-11-09 01:36:53 +00:00
parent 8099dfbde6
commit ca75c1c231
3 changed files with 10 additions and 11 deletions

View File

@@ -98,7 +98,7 @@ stanza_create_room_presence(xmpp_ctx_t *ctx, const char * const room,
return presence;
}
/*
xmpp_stanza_t *
stanza_create_room_leave(xmpp_ctx_t *ctx, const char * const room,
const char * const nick)
@@ -110,7 +110,9 @@ stanza_create_room_leave(xmpp_ctx_t *ctx, const char * const room,
xmpp_stanza_t *presence = xmpp_stanza_new(ctx);
xmpp_stanza_set_name(presence, STANZA_NAME_PRESENCE);
xmpp_stanza_set_type(presence, STANZA_TYPE_UNAVAILABLE);
xmpp_stanza_set_attribute(presence, STANZA_ATTR_TO, full_jid->str);
g_string_free(full_jid, TRUE);
return presence;
}
*/