Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
2447:366fadb5c6e5 | 2448:1f7f66272f73 |
---|---|
508 return true; | 508 return true; |
509 end | 509 end |
510 --]] | 510 --]] |
511 | 511 |
512 -- Component event handler | 512 -- Component event handler |
513 function sms_event_handler(origin, stanza) | 513 function sms_event_handler(event) |
514 local origin, stanza = event.origin, event.stanza; | |
514 module:log("debug", "Received stanza: "..stanza:pretty_print()); | 515 module:log("debug", "Received stanza: "..stanza:pretty_print()); |
515 local to_node, to_host, to_resource = jid_split(stanza.attr.to); | 516 local to_node, to_host, to_resource = jid_split(stanza.attr.to); |
516 | 517 |
517 -- Handle component internals (stanzas directed to component host, mainly iq stanzas) | 518 -- Handle component internals (stanzas directed to component host, mainly iq stanzas) |
518 if to_node == nil then | 519 if to_node == nil then |