Software /
code /
prosody-modules
Changeset
404:eb8b005d2a3d
mod_saslauth_muc: Report proper SASL error on auth failure.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 25 Aug 2011 12:22:48 +0500 |
parents | 403:fc62b26dfdf6 |
children | 405:fe4fdba21a23 |
files | mod_saslauth_muc/mod_saslauth_muc.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_saslauth_muc/mod_saslauth_muc.lua Thu Aug 25 01:21:42 2011 +0200 +++ b/mod_saslauth_muc/mod_saslauth_muc.lua Thu Aug 25 12:22:48 2011 +0500 @@ -34,8 +34,8 @@ local muc = hosts[module.host].modules.muc; local room = muc and muc.rooms[room_jid]; local password = room and room:get_password(); - local ret = password and true or false; - return password, true; + local ret = password and true or nil; + return password or "", ret; end }); _rooms[room_jid][jid].timeout = os_time() + timeout; return _rooms[room_jid][jid];