# HG changeset patch # User Kim Alvefur # Date 1546773657 -3600 # Node ID f40b9649e929f483e1d0d0e0a611e1c2f4dc0e5d # Parent 5253555128ec73c160729460a4bc3f393fbfc074 MUC: Rename import to avoid name clash [luacheck] diff -r 5253555128ec -r f40b9649e929 plugins/muc/muc.lib.lua --- 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;