Comparison

plugins/mod_csi.lua @ 9651:989cf872d5c0 0.11

mod_csi: Set session.state to simplify CSI modules Moved here from mod_csi_simple
author Kim Alvefur <zash@zash.se>
date Tue, 27 Nov 2018 19:34:21 +0100
parent 9073:a5daf3f6d588
child 9653:91856829f18b
comparison
equal deleted inserted replaced
9650:db6bcafd76c9 9651:989cf872d5c0
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 session.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