diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-08-05 09:16:29 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-08-05 09:16:29 +0100 |
commit | e4e4477db09bf26c7d9e476035fe747a8878c002 (patch) | |
tree | 4e39c5174c54c51a2e15fb7e109ac8d94410a77c /plugins/muc | |
parent | 4fc1aee09c0a779e8cd98645c78f668d98519b50 (diff) | |
download | prosody-e4e4477db09bf26c7d9e476035fe747a8878c002.tar.gz prosody-e4e4477db09bf26c7d9e476035fe747a8878c002.zip |
mod_muc: Fix use of undefined global. Fixes #431.
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/mod_muc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 4cd20245..af46714c 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -148,7 +148,8 @@ do if restrict_room_creation then local host_suffix = module.host:gsub("^[^%.]+%.", ""); module:hook("muc-room-pre-create", function(event) - local user_jid = event.stanza.attr.from; + local origin, stanza = event.origin, event.stanza; + local user_jid = stanza.attr.from; if not is_admin(user_jid) and not ( restrict_room_creation == "local" and select(2, jid_split(user_jid)) == host_suffix |