Comparison

mod_muc_log/mod_muc_log.lua @ 1034:a0fbe738317c

mod_muc_log: Reduce hook priority to 1 (from 500), we want to log after any plugins have filtered/modified the incoming stanza (thanks Asterix/Maranda)
author Matthew Wild <mwild1@gmail.com>
date Sat, 01 Jun 2013 22:14:52 +0100
parent 1032:b69e5d63a4fe
child 1037:892272432703
comparison
equal deleted inserted replaced
1033:c6d4778bc0e8 1034:a0fbe738317c
115 end 115 end
116 end 116 end
117 end 117 end
118 end 118 end
119 119
120 module:hook("message/bare", log_if_needed, 50); 120 module:hook("message/bare", logIfNeeded, 1);
121 module:hook("iq/bare", log_if_needed, 50); 121 module:hook("iq/bare", logIfNeeded, 1);
122 if log_presences then module:hook("presence/full", log_if_needed, 50); end 122 module:hook("presence/full", logIfNeeded, 1);
123 123
124 local function reload() 124 local function reload()
125 inject_storage_config(); 125 inject_storage_config();
126 end 126 end
127 127