Comparison

mod_carbons/mod_carbons.lua @ 520:6fa8436f8ee3

mod_carbons: Remove completed TODO
author Kim Alvefur <zash@zash.se>
date Fri, 06 Jan 2012 12:09:48 +0100
parent 510:59e80326f2b3
child 521:6d0d2673f95e
comparison
equal deleted inserted replaced
518:d4adda950546 520:6fa8436f8ee3
2 local jid_bare = require "util.jid".bare; 2 local jid_bare = require "util.jid".bare;
3 local jid_split = require "util.jid".split; 3 local jid_split = require "util.jid".split;
4 local xmlns_carbons = "urn:xmpp:carbons:1"; 4 local xmlns_carbons = "urn:xmpp:carbons:1";
5 local xmlns_forward = "urn:xmpp:forward:0"; 5 local xmlns_forward = "urn:xmpp:forward:0";
6 local host_sessions = hosts[module.host].sessions; 6 local host_sessions = hosts[module.host].sessions;
7
8 -- TODO merge message handlers into one somehow
9 7
10 module:hook("iq/self/"..xmlns_carbons..":enable", function(event) 8 module:hook("iq/self/"..xmlns_carbons..":enable", function(event)
11 local origin, stanza = event.origin, event.stanza; 9 local origin, stanza = event.origin, event.stanza;
12 if stanza.attr.type == "set" then 10 if stanza.attr.type == "set" then
13 module:log("debug", "%s enabled carbons", origin.full_jid); 11 module:log("debug", "%s enabled carbons", origin.full_jid);