comparison mod_csi/mod_csi.lua @ 3395:eaf0b1e95016

mod_csi: Backport 989cf872d5c0 from Prosody 0.11 to preserve compatibility
author Matthew Wild <mwild1@gmail.com>
date Wed, 05 Dec 2018 14:12:00 +0000
parents fbb4cd2922a1
children
comparison
equal deleted inserted replaced
3394:4fe7eee926ce 3395:eaf0b1e95016
9 end); 9 end);
10 10
11 function refire_event(name) 11 function refire_event(name)
12 return function (event) 12 return function (event)
13 if event.origin.username then 13 if event.origin.username then
14 event.origin.state = event.stanza.name;
14 module:fire_event(name, event); 15 module:fire_event(name, event);
15 return true; 16 return true;
16 end 17 end
17 end; 18 end;
18 end 19 end