Mercurial > prosody-hg
comparison plugins/mod_blocklist.lua @ 6460:6d3187f24608
mod_blocklist: Capitalize log message
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 05 Oct 2014 15:36:19 +0200 |
| parents | b703e6930e4c |
| children | 5979eaed12c0 |
comparison
equal
deleted
inserted
replaced
| 6459:ba421af3dfd3 | 6460:6d3187f24608 |
|---|---|
| 180 end); | 180 end); |
| 181 | 181 |
| 182 -- Buggy clients | 182 -- Buggy clients |
| 183 module:hook("iq-error/self/blocklist-push", function (event) | 183 module:hook("iq-error/self/blocklist-push", function (event) |
| 184 local type, condition, text = event.stanza:get_error(); | 184 local type, condition, text = event.stanza:get_error(); |
| 185 (event.origin.log or module._log)("warn", "client returned an error in response to notification from mod_%s: %s%s%s", module.name, condition, text and ": " or "", text or ""); | 185 (event.origin.log or module._log)("warn", "Client returned an error in response to notification from mod_%s: %s%s%s", module.name, condition, text and ": " or "", text or ""); |
| 186 return true; | 186 return true; |
| 187 end); | 187 end); |
| 188 | 188 |
| 189 local function is_blocked(user, jid) | 189 local function is_blocked(user, jid) |
| 190 local blocklist = cache[user] or get_blocklist(user); | 190 local blocklist = cache[user] or get_blocklist(user); |
