changeset 4652:e524a97730eb

mod_http_muc_kick: Missing local keyword
author Seve Ferrer <seve@delape.net>
date Mon, 23 Aug 2021 14:28:40 +0200
parents 8231774f5bfd
children 2b6e8ce5fb30
files mod_http_muc_kick/mod_http_muc_kick.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_muc_kick/mod_http_muc_kick.lua	Sun Aug 22 13:22:59 2021 +0200
+++ b/mod_http_muc_kick/mod_http_muc_kick.lua	Mon Aug 23 14:28:40 2021 +0200
@@ -30,7 +30,7 @@
         return nil, host, err;
     end
 
-    muc = prosody.hosts[host].modules.muc.get_room_from_jid(muc_jid);
+    local muc = prosody.hosts[host].modules.muc.get_room_from_jid(muc_jid);
     if not muc then
         return nil, host, "No MUC '"..muc_node.."' found for host: "..host;
     end