commit
8b304637eb
1 changed files with 3 additions and 3 deletions
|
@ -7,12 +7,12 @@ def mode_cmd(mode, text, inp, chan, conn, notice):
|
||||||
if split[0].startswith("#"):
|
if split[0].startswith("#"):
|
||||||
channel = split[0]
|
channel = split[0]
|
||||||
target = split[1]
|
target = split[1]
|
||||||
notice("Attempting to {} {} in {}...".format(target, text, channel))
|
notice("Attempting to {} {} in {}...".format(text, target, channel))
|
||||||
conn.send("MODE {} {} {}".format(channel, mode, target))
|
conn.send("MODE {} {} {}".format(channel, mode, target))
|
||||||
else:
|
else:
|
||||||
channel = chan
|
channel = chan
|
||||||
target = split[0]
|
target = split[0]
|
||||||
notice("Attempting to {} {} in {}...".format(target, text, channel))
|
notice("Attempting to {} {} in {}...".format(text, target, channel))
|
||||||
conn.send("MODE {} {} {}".format(channel, mode, target))
|
conn.send("MODE {} {} {}".format(channel, mode, target))
|
||||||
|
|
||||||
@hook.command(permissions=["op_ban", "op"])
|
@hook.command(permissions=["op_ban", "op"])
|
||||||
|
|
Reference in a new issue