Changeset

6409:5fd6c739e9bf

plugins/mod_muc_unique: Fix undefined global access (thanks Lance)
author Waqas Hussain <waqas20@gmail.com>
date Tue, 16 Sep 2014 12:27:05 -0400
parents 6408:7e69d61a0ef7
children 6410:d782cbb46c2a
files plugins/mod_muc_unique.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_muc_unique.lua	Thu Sep 11 01:17:56 2014 +0200
+++ b/plugins/mod_muc_unique.lua	Tue Sep 16 12:27:05 2014 -0400
@@ -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"})