mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 06:07:37 +03:00
mod_csi: Set session.state to simplify CSI modules
Moved here from mod_csi_simple
This commit is contained in:
parent
64b9b5a758
commit
a24712e845
2 changed files with 1 additions and 2 deletions
|
@ -11,6 +11,7 @@ end);
|
|||
function refire_event(name)
|
||||
return function (event)
|
||||
if event.origin.username then
|
||||
session.state = event.stanza.name;
|
||||
module:fire_event(name, event);
|
||||
return true;
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue