# HG changeset patch # User Kim Alvefur # Date 1527664259 -7200 # Node ID 926db29176f54fb3e9ca6c56e14d8346be93baf2 # Parent b6cac9d722555c54f023ded58bd6c60961c542da mod_saslauth_muc: Use correct API for getting rooms diff -r b6cac9d72255 -r 926db29176f5 mod_saslauth_muc/mod_saslauth_muc.lua --- a/mod_saslauth_muc/mod_saslauth_muc.lua Wed May 30 09:10:33 2018 +0200 +++ b/mod_saslauth_muc/mod_saslauth_muc.lua Wed May 30 09:10:59 2018 +0200 @@ -34,7 +34,7 @@ _rooms[room_jid] = _rooms[room_jid] or {}; _rooms[room_jid][jid] = new_sasl(module.host, { plain = function(sasl, username, realm) local muc = hosts[module.host].modules.muc; - local room = muc and muc.get_room_by_jid(room_jid); + local room = muc and muc.get_room_from_jid(room_jid); local password = room and muc_password.get(room); local ret = password and true or nil; return password or "", ret;