diff options
| author | 2018-10-02 14:55:12 +0100 | |
|---|---|---|
| committer | 2018-10-02 14:55:12 +0100 | |
| commit | 150788c6c69d5ae65eae391312634d6e1b1536ac (patch) | |
| tree | 320a61e968731b7e42048c4491701caa0adcf3bc /modules | |
| parent | Don't complain when modules/karma.py can't find a user when it's in (diff) | |
Add !leave to modules/channel_op.py
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/channel_op.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py index 49d9682c..93c8101a 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -237,3 +237,11 @@ class Module(ModuleManager.BaseModule): event["user"].username, event["user"].hostname)) event["channel"].send_kick(event["user"].nickname, "highlight spam detected") + + @Utils.hook("received.command.leave", channel_only=True) + def leave(self, event): + """ + :help: Part me from the current channel + :require_mode: o + """ + event["target"].send_part() |
