From 52deab53aa1e11b5c1cacd535fdcb5c06cbaa707 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 24 Apr 2016 03:01:44 +0100 Subject: [PATCH] added an error to the kickban command in channel_op.py for when a user is not present in a channel to be kickbanned. --- modules/channel_op.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/channel_op.py b/modules/channel_op.py index 712009dd..e3d00d8e 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -45,6 +45,8 @@ class Module(object): if event["server"].has_user(event["args_split"][0]): self.ban(event) self.kick(event) + else: + event["stderr"].write("That user is not in this channel") def op(self, event): event["target"].send_mode("+o", event["args_split"][0])