Software /
code /
prosody-modules
Changeset
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 | 2447:366fadb5c6e5 |
children | 2449:c9372cfac3b7 |
files | mod_sms_clickatell/mod_sms_clickatell.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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);