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 1799 91c01ef82807
parent 1798 eefe4b69b5f6
child 1800 1e9a06caa866
mod_carbons: Get full_ and bare_sessions from the prosody global [luacheck]
mod_carbons/mod_carbons.lua
--- a/mod_carbons/mod_carbons.lua	Thu Aug 27 12:16:39 2015 +0200
+++ b/mod_carbons/mod_carbons.lua	Thu Aug 27 12:17:12 2015 +0200
@@ -9,7 +9,7 @@
 local xmlns_carbons_old = "urn:xmpp:carbons:1";
 local xmlns_carbons_really_old = "urn:xmpp:carbons:0";
 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;