Mercurial > prosody-hg
comparison plugins/mod_ping.lua @ 8729:c519c778f2b2
mod_ping: Ignore unused arguments [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 06 Apr 2018 01:32:28 +0200 |
| parents | 7e8a624272bf |
| children | 5d4ebceaf8aa |
comparison
equal
deleted
inserted
replaced
| 8728:41c959c5c84b | 8729:c519c778f2b2 |
|---|---|
| 19 | 19 |
| 20 -- Ad-hoc command | 20 -- Ad-hoc command |
| 21 | 21 |
| 22 local datetime = require "util.datetime".datetime; | 22 local datetime = require "util.datetime".datetime; |
| 23 | 23 |
| 24 function ping_command_handler (self, data, state) | 24 function ping_command_handler (self, data, state) -- luacheck: ignore 212 |
| 25 local now = datetime(); | 25 local now = datetime(); |
| 26 return { info = "Pong\n"..now, status = "completed" }; | 26 return { info = "Pong\n"..now, status = "completed" }; |
| 27 end | 27 end |
| 28 | 28 |
| 29 local adhoc_new = module:require "adhoc".new; | 29 local adhoc_new = module:require "adhoc".new; |
