Mercurial > prosody-modules
diff mod_pubsub_github/mod_pubsub_github.lua @ 1343:7dbde05b48a9
all the things: Remove trailing whitespace
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Tue, 11 Mar 2014 18:44:01 +0100 |
parents | 1c886affb375 |
children | 754d97ba333d |
line wrap: on
line diff
--- a/mod_pubsub_github/mod_pubsub_github.lua Mon Mar 10 08:22:58 2014 +0000 +++ b/mod_pubsub_github/mod_pubsub_github.lua Tue Mar 11 18:44:01 2014 +0100 @@ -12,7 +12,7 @@ if not data then return "Invalid JSON. From you of all people..."; end - + for _, commit in ipairs(data.commits) do local ok, err = pubsub_service:publish(node, true, data.repository.name, st.stanza("item", { id = data.repository.name, xmlns = "http://jabber.org/protocol/pubsub" }) @@ -27,7 +27,7 @@ :up() ); end - + module:log("debug", "Handled POST: \n%s\n", tostring(event.request.body)); return "Thank you Github!"; end