mod_csi: Fix copypaste mistake [luacheck] 0.11 0.11.1
authorKim Alvefur <zash@zash.se>
Tue, 27 Nov 2018 21:23:22 +0100
branch0.11
changeset 9657 91856829f18b
parent 9655 989cf872d5c0
child 9658 ede4e15a0fed
child 9659 e9b8982e3b5d
mod_csi: Fix copypaste mistake [luacheck]
plugins/mod_csi.lua
--- a/plugins/mod_csi.lua	Tue Nov 27 19:34:21 2018 +0100
+++ b/plugins/mod_csi.lua	Tue Nov 27 21:23:22 2018 +0100
@@ -11,7 +11,7 @@
 function refire_event(name)
 	return function (event)
 		if event.origin.username then
-			session.state = event.stanza.name;
+			event.origin.state = event.stanza.name;
 			module:fire_event(name, event);
 			return true;
 		end