diff options
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index 41595540..85fb0d6c 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -1483,8 +1483,9 @@ local function stats_tostring(stats) return #stats.." statistics displayed"; end +local stats_mt = {__index = stats_methods, __tostring = stats_tostring } local function new_stats_context(self) - return setmetatable({ session = self.session, stats = true }, {__index = stats_methods, __tostring = stats_tostring }); + return setmetatable({ session = self.session, stats = true }, stats_mt); end function def_env.stats:show(filter) |