Mercurial > prosody-modules
comparison mod_flash_policy/mod_flash_policy.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 | 77ca0947647b |
| children |
comparison
equal
deleted
inserted
replaced
| 1342:0ae065453dc9 | 1343:7dbde05b48a9 |
|---|---|
| 21 session.send(string.."\0"); | 21 session.send(string.."\0"); |
| 22 return nil; -- Drop data to prevent it reaching the XMPP parser | 22 return nil; -- Drop data to prevent it reaching the XMPP parser |
| 23 else | 23 else |
| 24 return data; -- Pass data through, it wasn't a policy request | 24 return data; -- Pass data through, it wasn't a policy request |
| 25 end | 25 end |
| 26 | 26 |
| 27 end | 27 end |
| 28 | 28 |
| 29 function filter_session(session) | 29 function filter_session(session) |
| 30 if session.type == "c2s_unauthed" then | 30 if session.type == "c2s_unauthed" then |
| 31 filters.add_filter(session, "bytes/in", filter_policy, -1); | 31 filters.add_filter(session, "bytes/in", filter_policy, -1); |
