mod_carbons: Get full_ and bare_sessions from the prosody global [luacheck]
authorKim Alvefur <zash@zash.se>
Thu, 27 Aug 2015 12:17:12 +0200
changeset 6807 9f40ae38f0de
parent 6806 7ed87299dbf9
child 6808 c37633feaece
mod_carbons: Get full_ and bare_sessions from the prosody global [luacheck]
plugins/mod_carbons.lua
--- a/plugins/mod_carbons.lua	Wed Aug 26 17:35:41 2015 +0200
+++ b/plugins/mod_carbons.lua	Thu Aug 27 12:17:12 2015 +0200
@@ -7,7 +7,7 @@
 local jid_bare = require "util.jid".bare;
 local xmlns_carbons = "urn:xmpp:carbons:2";
 local xmlns_forward = "urn:xmpp:forward:0";
-local full_sessions, bare_sessions = full_sessions, bare_sessions;
+local full_sessions, bare_sessions = prosody.full_sessions, prosody.bare_sessions;
 
 local function toggle_carbons(event)
 	local origin, stanza = event.origin, event.stanza;