mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
mod_announce: Changed a global variable to local.
This commit is contained in:
parent
f832bae509
commit
730fa22c6d
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ local is_admin = require "core.usermanager".is_admin;
|
|||
local admins = set.new(config.get(module:get_host(), "core", "admins"));
|
||||
|
||||
function send_to_online(message, server)
|
||||
local sessions;
|
||||
if server then
|
||||
sessions = { [server] = hosts[server] };
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue