diff options
| author | 2018-11-08 22:28:32 +0000 | |
|---|---|---|
| committer | 2018-11-08 22:28:32 +0000 | |
| commit | 57f697a378fc1be31bdb13825343be32cdc95978 (patch) | |
| tree | d1fd8e3d3c3e5f5f61ddf0bc18ca423c7af67c88 /modules/stats.py | |
| parent | Make hiding [Github] prefix dependent on channel setting (diff) | |
| signature | ||
Add !caps to show negotiated IRCv3 capabilities
Diffstat (limited to 'modules/stats.py')
| -rw-r--r-- | modules/stats.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/stats.py b/modules/stats.py index 8e93c575..9d0061af 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -111,3 +111,11 @@ class Module(ModuleManager.BaseModule): @utils.hook("api.get.modules") def modules_api(self, event): return list(self.bot.modules.modules.keys()) + + @utils.hook("received.command.caps" + def capabilities(self, event): + """ + :help: List negotiated IRCv3 capabilities + """ + event["stdout"].write("IRCv3 capabilities: %s" % + ", ".join(event["server"].capabilities)) |
