comparison mod_carbons/mod_carbons.lua @ 900:aca1c5eb0508

mod_carbons: Catch outgoing messages to hosts (thanks waqas)
author Kim Alvefur <zash@zash.se>
date Fri, 18 Jan 2013 10:00:59 +0100
parents d24d87ca3f5f
children 28d4b58bcc3b
comparison
equal deleted inserted replaced
899:4cd018025a26 900:aca1c5eb0508
127 local function c2s_message_handler(event) 127 local function c2s_message_handler(event)
128 return message_handler(event, true) 128 return message_handler(event, true)
129 end 129 end
130 130
131 -- Stanzas sent by local clients 131 -- Stanzas sent by local clients
132 module:hook("pre-message/host", c2s_message_handler, 1);
132 module:hook("pre-message/bare", c2s_message_handler, 1); 133 module:hook("pre-message/bare", c2s_message_handler, 1);
133 module:hook("pre-message/full", c2s_message_handler, 1); 134 module:hook("pre-message/full", c2s_message_handler, 1);
134 -- Stanzas to local clients 135 -- Stanzas to local clients
135 module:hook("message/bare", message_handler, 1); 136 module:hook("message/bare", message_handler, 1);
136 module:hook("message/full", message_handler, 1); 137 module:hook("message/full", message_handler, 1);