diff options
author | James Booth <boothj5@gmail.com> | 2012-11-18 18:36:17 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-18 18:36:17 +0000 |
commit | e9d6ba211774e382771df5afcc3170f64a72ca6d (patch) | |
tree | 2faed044d2921073c34ab5680f7c7b60a83a1a7f /src/stanza.c | |
parent | a847ad5603a496309adb374097e28e52ae1a2ce9 (diff) | |
download | profani-tty-e9d6ba211774e382771df5afcc3170f64a72ca6d.tar.gz |
Allow nick change in chat room
Diffstat (limited to 'src/stanza.c')
-rw-r--r-- | src/stanza.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stanza.c b/src/stanza.c index 41d80d10..07e49d36 100644 --- a/src/stanza.c +++ b/src/stanza.c @@ -99,6 +99,17 @@ stanza_create_room_join_presence(xmpp_ctx_t *ctx, } xmpp_stanza_t * +stanza_create_room_newnick_presence(xmpp_ctx_t *ctx, + const char * const full_room_jid) +{ + xmpp_stanza_t *presence = xmpp_stanza_new(ctx); + xmpp_stanza_set_name(presence, STANZA_NAME_PRESENCE); + xmpp_stanza_set_attribute(presence, STANZA_ATTR_TO, full_room_jid); + + return presence; +} + +xmpp_stanza_t * stanza_create_room_leave_presence(xmpp_ctx_t *ctx, const char * const room, const char * const nick) { |