Changeset

3072:926db29176f5

mod_saslauth_muc: Use correct API for getting rooms
author Kim Alvefur <zash@zash.se>
date Wed, 30 May 2018 09:10:59 +0200
parents 3071:b6cac9d72255
children 3073:ef8fe8bec5b1
files mod_saslauth_muc/mod_saslauth_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;