From 50277880c9cf13c00545000eca2afe94306e532b Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 16 Sep 2014 12:27:05 -0400 Subject: plugins/mod_muc_unique: Fix undefined global access (thanks Lance) --- plugins/mod_muc_unique.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') 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"}) -- cgit v1.2.3