Mercurial > prosody-modules
comparison mod_firewall/actions.lib.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 | 8a3f3f485675 |
| children | 2356114ff505 |
comparison
equal
deleted
inserted
replaced
| 1342:0ae065453dc9 | 1343:7dbde05b48a9 |
|---|---|
| 124 deps[#deps+1] = "core_post_stanza"; | 124 deps[#deps+1] = "core_post_stanza"; |
| 125 end | 125 end |
| 126 return ([[local newstanza = st.%s; %s;%s]]) | 126 return ([[local newstanza = st.%s; %s;%s]]) |
| 127 :format(make_new, reroute, drop and " return true;" or ""), deps; | 127 :format(make_new, reroute, drop and " return true;" or ""), deps; |
| 128 end | 128 end |
| 129 | 129 |
| 130 function action_handlers.BOUNCE(with) | 130 function action_handlers.BOUNCE(with) |
| 131 local error = with and with:match("^%S+") or "service-unavailable"; | 131 local error = with and with:match("^%S+") or "service-unavailable"; |
| 132 local error_type = error:match(":(%S+)"); | 132 local error_type = error:match(":(%S+)"); |
| 133 if not error_type then | 133 if not error_type then |
| 134 error_type = error_types[error] or "cancel"; | 134 error_type = error_types[error] or "cancel"; |
