Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 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 |
parent | 9761:8e83f90bf96b |
child | 9820:87a1742f928d |
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;