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 | f56e83c75b1e81373d9ec44113c2105f6e1b1839 (patch) | |
tree | ea1b4db07b85e9969fb4b04e85d5dc85e4fc74cf /plugins | |
parent | 43df3959ab0c8801cb39c1d7eba96af8a3785064 (diff) | |
download | prosody-f56e83c75b1e81373d9ec44113c2105f6e1b1839.tar.gz prosody-f56e83c75b1e81373d9ec44113c2105f6e1b1839.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"}) |