Mercurial > prosody-modules
diff mod_saslauth_muc/mod_saslauth_muc.lua @ 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 | 4c3abf1a9b5a |
children | 7dbde05b48a9 |
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];