Software /
code /
prosody
Comparison
plugins/mod_admin_shell.lua @ 12291:ec16fb706247
mod_admin_shell: Fix description of muc:room() (thanks Link Mauve)
But then this is the internal API which is weird and unfriendly to
expose externally. Lots of methods to wrap tho ... one day.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 Feb 2022 22:14:40 +0100 |
parent | 12281:9016071867d7 |
child | 12293:145cb8305c67 |
comparison
equal
deleted
inserted
replaced
12290:aa7a8aa64d3f | 12291:ec16fb706247 |
---|---|
272 print [[{"example:role"} - short for {["example:role"]=true}]] | 272 print [[{"example:role"} - short for {["example:role"]=true}]] |
273 elseif section == "muc" then | 273 elseif section == "muc" then |
274 -- TODO `muc:room():foo()` commands | 274 -- TODO `muc:room():foo()` commands |
275 print [[muc:create(roomjid, { config }) - Create the specified MUC room with the given config]] | 275 print [[muc:create(roomjid, { config }) - Create the specified MUC room with the given config]] |
276 print [[muc:list(host) - List rooms on the specified MUC component]] | 276 print [[muc:list(host) - List rooms on the specified MUC component]] |
277 print [[muc:room(roomjid) - Create the specified MUC room with the given config]] | 277 print [[muc:room(roomjid) - Reference the specified MUC room to access MUC API methods]] |
278 elseif section == "server" then | 278 elseif section == "server" then |
279 print [[server:version() - Show the server's version number]] | 279 print [[server:version() - Show the server's version number]] |
280 print [[server:uptime() - Show how long the server has been running]] | 280 print [[server:uptime() - Show how long the server has been running]] |
281 print [[server:memory() - Show details about the server's memory usage]] | 281 print [[server:memory() - Show details about the server's memory usage]] |
282 print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]] | 282 print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]] |