Changeset

2425:26c68a5f432f

mod_statsd: Import bare_sessions from the prosody global, using it as a global directly is deprecated
author Kim Alvefur <zash@zash.se>
date Mon, 19 Dec 2016 07:51:23 +0100 (2016-12-19)
parents 2424:27ffa6521d4e
children 2426:deedb77c4f96
files mod_statsd/mod_statsd.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_statsd/mod_statsd.lua	Mon Dec 19 07:50:21 2016 +0100
+++ b/mod_statsd/mod_statsd.lua	Mon Dec 19 07:51:23 2016 +0100
@@ -7,6 +7,7 @@
 local socket = require "socket"
 local iterators = require "util.iterators"
 local jid = require "util.jid"
+local bare_sessions = prosody.bare_sessions;
 
 local options = module:get_option("statsd") or {}