aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2014-09-16 12:27:05 -0400
committerWaqas Hussain <waqas20@gmail.com>2014-09-16 12:27:05 -0400
commit50277880c9cf13c00545000eca2afe94306e532b (patch)
treeea1b4db07b85e9969fb4b04e85d5dc85e4fc74cf
parentfb0e709aa2d5fb52da6fb643a3cdfd921e8cde33 (diff)
downloadprosody-50277880c9cf13c00545000eca2afe94306e532b.tar.gz
prosody-50277880c9cf13c00545000eca2afe94306e532b.zip
plugins/mod_muc_unique: Fix undefined global access (thanks Lance)
-rw-r--r--plugins/mod_muc_unique.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_muc_unique.lua b/plugins/mod_muc_unique.lua
index b27fcff6..0ecd0c7a 100644
--- a/plugins/mod_muc_unique.lua
+++ b/plugins/mod_muc_unique.lua
@@ -1,7 +1,8 @@
-- XEP-0307: Unique Room Names for Multi-User Chat
+local st = require "util.stanza";
local uuid_gen = require "util.uuid".generate;
module:add_feature "http://jabber.org/protocol/muc#unique"
-module:hook("iq-get/host/http://jabber.org/protocol/muc#unique:unique", function()
+module:hook("iq-get/host/http://jabber.org/protocol/muc#unique:unique", function(event)
local origin, stanza = event.origin, event.stanza;
origin.send(st.reply(stanza)
:tag("unique", {xmlns = "http://jabber.org/protocol/muc#unique"})