aboutsummaryrefslogtreecommitdiff
path: root/modules/stats.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-14 12:09:42 +0100
committerGravatar jesopo2019-06-14 12:09:42 +0100
commitf614d1fc1480724b2d5f2cb409ad8a1962173b74 (patch)
tree3123b15da131a473532c063914e807edfca34c96 /modules/stats.py
parentAdd a way to __or__ `utils.Check`s, as a "if one of these passes" thing (diff)
signature
add `self` check.command, change !config to use new yields
Diffstat (limited to 'modules/stats.py')
-rw-r--r--modules/stats.py2
1 files changed, 2 insertions, 0 deletions
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