diff options
author | Waqas Hussain <waqas20@gmail.com> | 2014-09-16 12:27:05 -0400 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2014-09-16 12:27:05 -0400 |
commit | 50277880c9cf13c00545000eca2afe94306e532b (patch) | |
tree | ea1b4db07b85e9969fb4b04e85d5dc85e4fc74cf /plugins | |
parent | fb0e709aa2d5fb52da6fb643a3cdfd921e8cde33 (diff) | |
download | prosody-50277880c9cf13c00545000eca2afe94306e532b.tar.gz prosody-50277880c9cf13c00545000eca2afe94306e532b.zip |
plugins/mod_muc_unique: Fix undefined global access (thanks Lance)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_muc_unique.lua | 3 |
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"}) |