Changeset

9766:f40b9649e929

MUC: Rename import to avoid name clash [luacheck]
author Kim Alvefur <zash@zash.se>
date Sun, 06 Jan 2019 12:20:57 +0100
parents 9765:5253555128ec
children 9772:7934e2c6b030
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Sun Jan 06 12:19:23 2019 +0100
+++ b/plugins/muc/muc.lib.lua	Sun Jan 06 12:20:57 2019 +0100
@@ -23,7 +23,7 @@
 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 @@
 	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;