mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
plugins/mod_muc_unique: Fix undefined global access (thanks Lance)
This commit is contained in:
parent
fb0e709aa2
commit
50277880c9
1 changed files with 2 additions and 1 deletions
|
@ -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"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue