diff mod_sms_clickatell/mod_sms_clickatell.lua @ 2448:1f7f66272f73

mod_sms_clickatell: Fix event handler signature (fixes #814)
author Kim Alvefur <zash@zash.se>
date Thu, 19 Jan 2017 19:55:39 +0100
parents 7dbde05b48a9
children 178b8abf8283
line wrap: on
line diff
--- 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);