# HG changeset patch # User Waqas Hussain # Date 1314256968 -18000 # Node ID eb8b005d2a3d198e26370280c5bf6463139ab207 # Parent fc62b26dfdf6d1a1e613100fea34839221c6f01a mod_saslauth_muc: Report proper SASL error on auth failure. diff -r fc62b26dfdf6 -r eb8b005d2a3d mod_saslauth_muc/mod_saslauth_muc.lua --- 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];