mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 09:56:21 +00:00
Fixed leaving chat room
This commit is contained in:
15
src/stanza.c
15
src/stanza.c
@@ -98,4 +98,19 @@ 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)
|
||||
{
|
||||
GString *full_jid = g_string_new(room);
|
||||
g_string_append(full_jid, "/");
|
||||
g_string_append(full_jid, nick);
|
||||
|
||||
xmpp_stanza_t *presence = xmpp_stanza_new(ctx);
|
||||
xmpp_stanza_set_name(presence, STANZA_NAME_PRESENCE);
|
||||
xmpp_stanza_set_type(presence, STANZA_TYPE_UNAVAILABLE);
|
||||
|
||||
g_string_free(full_jid, TRUE);
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user