aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2016-04-24 03:01:44 +0100
committerGravatar jesopo2016-04-24 03:01:44 +0100
commit52deab53aa1e11b5c1cacd535fdcb5c06cbaa707 (patch)
treee425a97155a3d6abb344a47ddd270abb365e794a
parentdecided to not track user realnames as there's no real purpose and it means b... (diff)
added an error to the kickban command in channel_op.py for when a user is not present in a channel to be kickbanned.
-rw-r--r--modules/channel_op.py2
1 files changed, 2 insertions, 0 deletions
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])