diff options
author | James Booth <boothj5@gmail.com> | 2015-04-11 23:37:52 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-04-11 23:37:52 +0100 |
commit | a2ccd896465982bd6059ae7770532417b1062bdb (patch) | |
tree | 9f627a7f0ba5aace156d3cd5511b2ac3e66110e8 /src/xmpp | |
parent | f18759192c1dd82385cfbc3edabea3e9a920e23c (diff) | |
download | profani-tty-a2ccd896465982bd6059ae7770532417b1062bdb.tar.gz |
Autogenerate room name with UUID for /join with no args
Diffstat (limited to 'src/xmpp')
-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 02c748d9..323c653c 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -342,7 +342,9 @@ _muc_user_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, char *password = NULL; xmpp_stanza_t *password_st = xmpp_stanza_get_child_by_name(xns_muc_user, STANZA_NAME_PASSWORD); - password = xmpp_stanza_get_text(password_st); + if (password_st) { + password = xmpp_stanza_get_text(password_st); + } handle_room_invite(INVITE_MEDIATED, invitor, room, reason, password); jid_destroy(jidp); |