aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/channel_op.py8
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()