From f614d1fc1480724b2d5f2cb409ad8a1962173b74 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 14 Jun 2019 12:09:42 +0100 Subject: add `self` check.command, change !config to use new yields --- modules/stats.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/stats.py') diff --git a/modules/stats.py b/modules/stats.py index 1a1fcdae..5b497d39 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -31,6 +31,8 @@ class Module(ModuleManager.BaseModule): """ :help: Show my network/channel/user stats """ + yield utils.Check("channel-mode", "o")|utils.Check("permission", "asd") + networks, channels, users = self._stats() response = "I currently have %d network" % networks -- cgit v1.3.1-10-gc9f91