aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-06 12:20:57 +0100
committerKim Alvefur <zash@zash.se>2019-01-06 12:20:57 +0100
commit12cea7094d339f68a661d00f096e8db9a51417f5 (patch)
tree57b8c86d6a7ac071ce56e61c3889d9389bf60124 /plugins/muc
parentf84260d3b2a2306a591bf98bc96890eaf714bce0 (diff)
downloadprosody-12cea7094d339f68a661d00f096e8db9a51417f5.tar.gz
prosody-12cea7094d339f68a661d00f096e8db9a51417f5.zip
MUC: Rename import to avoid name clash [luacheck]
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index a34e912b..7259dde2 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -23,7 +23,7 @@ local resourceprep = require "util.encodings".stringprep.resourceprep;
local st = require "util.stanza";
local base64 = require "util.encodings".base64;
local md5 = require "util.hashes".md5;
-local id = require "util.id";
+local new_id = require "util.id".medium;
local log = module._log;
@@ -1039,7 +1039,7 @@ function room_mt:handle_groupchat_to_room(origin, stanza)
local from = stanza.attr.from;
local occupant = self:get_occupant_by_real_jid(from);
if not stanza.attr.id then
- stanza.attr.id = id.medium()
+ stanza.attr.id = new_id()
end
if module:fire_event("muc-occupant-groupchat", {
room = self; origin = origin; stanza = stanza; from = from; occupant = occupant;