added an error to the kickban command in channel_op.py for when a user is not present in a channel to be kickbanned.

This commit is contained in:
jesopo 2016-04-24 03:01:44 +01:00
parent f85ab987c4
commit 52deab53aa
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -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])