mod_sms_clickatell: Fix event handler signature (fixes #814)
authorKim Alvefur <zash@zash.se>
Thu, 19 Jan 2017 19:55:39 +0100
changeset 2452 1f7f66272f73
parent 2451 366fadb5c6e5
child 2453 c9372cfac3b7
mod_sms_clickatell: Fix event handler signature (fixes #814)
mod_sms_clickatell/mod_sms_clickatell.lua
--- a/mod_sms_clickatell/mod_sms_clickatell.lua	Wed Jan 18 01:52:50 2017 +0100
+++ b/mod_sms_clickatell/mod_sms_clickatell.lua	Thu Jan 19 19:55:39 2017 +0100
@@ -510,7 +510,8 @@
 --]]
 
 -- Component event handler
-function sms_event_handler(origin, stanza)
+function sms_event_handler(event)
+	local origin, stanza = event.origin, event.stanza;
 	module:log("debug", "Received stanza: "..stanza:pretty_print());
 	local to_node, to_host, to_resource = jid_split(stanza.attr.to);