core/moduleapi.lua
changeset 10579 5cf8e96575b3
parent 10218 f864e685e618
child 10580 f88f1151bc72
--- a/core/moduleapi.lua	Sun Dec 29 22:20:51 2019 +0100
+++ b/core/moduleapi.lua	Mon Dec 30 09:53:10 2019 +0100
@@ -398,7 +398,7 @@
 
 		local function error_handler(event)
 			if event.stanza.attr.from == stanza.attr.to then
-				reject(errutil.from_stanza(event.stanza), event);
+				reject(errutil.from_stanza(event.stanza, event));
 				return true;
 			end
 		end