# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1484852139 -3600
# Node ID 1f7f66272f7394af9ec4e2043675bd60976424ec
# Parent  366fadb5c6e540808b9c2e5c0b35e9a7aa110e54
mod_sms_clickatell: Fix event handler signature (fixes #814)

diff -r 366fadb5c6e5 -r 1f7f66272f73 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);