Software / code / prosody
Comparison
plugins/mod_storage_sql.lua @ 13838:a93e7310bfcd 13.0
mod_storage_sql: Mark unused argument as such
Make `make lint` happy again
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 10 Apr 2025 00:22:44 +0200 |
| parent | 13836:c600794cafb6 |
| child | 13845:2558be2daaca |
comparison
equal
deleted
inserted
replaced
| 13836:c600794cafb6 | 13838:a93e7310bfcd |
|---|---|
| 1059 args = { { name = "host"; type = "string" } }; | 1059 args = { { name = "host"; type = "string" } }; |
| 1060 host_selector = "host"; | 1060 host_selector = "host"; |
| 1061 handler = function(shell, _host) | 1061 handler = function(shell, _host) |
| 1062 local logger = require "prosody.util.logger"; | 1062 local logger = require "prosody.util.logger"; |
| 1063 local writing = false; | 1063 local writing = false; |
| 1064 local sink = logger.add_simple_sink(function (source, level, message) | 1064 local sink = logger.add_simple_sink(function (source, _level, message) |
| 1065 local print = shell.session.print; | 1065 local print = shell.session.print; |
| 1066 if writing or source ~= "sql" then return; end | 1066 if writing or source ~= "sql" then return; end |
| 1067 writing = true; | 1067 writing = true; |
| 1068 print(message); | 1068 print(message); |
| 1069 writing = false; | 1069 writing = false; |