mod_blocklist: Split long line [luacheck]

remotes/origin/0.11
Kim Alvefur 9 years ago
parent 255423ab56
commit e1a8887ccd
  1. 5
      plugins/mod_blocklist.lua

@ -228,8 +228,11 @@ end);
-- Buggy clients
module:hook("iq-error/self/blocklist-push", function (event)
local origin, stanza = event.origin, event.stanza;
local _, condition, text = event.stanza:get_error();
(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 "");
local log = (origin.log or module._log);
log("warn", "Client returned an error in response to notification from mod_%s: %s%s%s",
module.name, condition, text and ": " or "", text or "");
return true;
end);

Loading…
Cancel
Save