diff options
author | James Booth <boothj5@gmail.com> | 2015-03-29 02:46:59 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-03-29 02:46:59 +0100 |
commit | 1917d4c095d3df705a79a92078bef060d50b6947 (patch) | |
tree | 99d627631944b0b36a474baa6d9b68e66c312e2a /src/xmpp/message.c | |
parent | 714faeb2e6330a65de6eddbff48a12a6e6f00abc (diff) | |
download | profani-tty-1917d4c095d3df705a79a92078bef060d50b6947.tar.gz |
Added password to direct invites
Diffstat (limited to 'src/xmpp/message.c')
-rw-r--r-- | src/xmpp/message.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c index 1bb3bcdc..bdbd5907 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -206,10 +206,12 @@ message_send_invite(const char * const roomjid, const char * const contact, xmpp_ctx_t * const ctx = connection_get_ctx(); xmpp_stanza_t *stanza; + muc_member_type_t member_type = muc_member_type(roomjid); if (member_type == MUC_MEMBER_TYPE_PUBLIC) { log_debug("Sending direct invite to %s, for %s", contact, roomjid); - stanza = stanza_create_invite(ctx, roomjid, contact, reason); + char *password = muc_password(roomjid); + stanza = stanza_create_invite(ctx, roomjid, contact, reason, password); } else { log_debug("Sending mediated invite to %s, for %s", contact, roomjid); stanza = stanza_create_mediated_invite(ctx, roomjid, contact, reason); |