diff options
| author | 2019-06-14 12:09:42 +0100 | |
|---|---|---|
| committer | 2019-06-14 12:09:42 +0100 | |
| commit | f614d1fc1480724b2d5f2cb409ad8a1962173b74 (patch) | |
| tree | 3123b15da131a473532c063914e807edfca34c96 /modules/stats.py | |
| parent | Add 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.py | 2 |
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 |
