Mercurial > prosody-hg
comparison plugins/mod_admin_telnet.lua @ 10791:f46c5e3c97ee
mod_admin_telnet: Add a command to configure pretty-printing settings
Sometimes you wanna adjust the maxdepth or something.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 29 Apr 2020 23:15:01 +0200 |
| parents | ee2f8ee319ea |
| children | ef2bd183f660 |
comparison
equal
deleted
inserted
replaced
| 10790:ee2f8ee319ea | 10791:f46c5e3c97ee |
|---|---|
| 328 -- Session environment -- | 328 -- Session environment -- |
| 329 -- Anything in def_env will be accessible within the session as a global variable | 329 -- Anything in def_env will be accessible within the session as a global variable |
| 330 | 330 |
| 331 --luacheck: ignore 212/self | 331 --luacheck: ignore 212/self |
| 332 | 332 |
| 333 def_env.output = {}; | |
| 334 function def_env.output:configure(opts) | |
| 335 self.session.serialize = serialization.new(opts); | |
| 336 end | |
| 337 | |
| 333 def_env.server = {}; | 338 def_env.server = {}; |
| 334 | 339 |
| 335 function def_env.server:insane_reload() | 340 function def_env.server:insane_reload() |
| 336 prosody.unlock_globals(); | 341 prosody.unlock_globals(); |
| 337 dofile "prosody" | 342 dofile "prosody" |
