Language Fix in op.py

Instead of "Attempting to Cyprezz quiet in #cloudbot..." it will be
"Attempting to quiet Cyprezz in #cloudbot..."
This commit is contained in:
Nathan Blaney 2013-08-06 20:31:06 +10:00
parent 5d94ed4387
commit 52e170020e

View file

@ -7,12 +7,12 @@ def mode_cmd(mode, text, inp, chan, conn, notice):
if split[0].startswith("#"):
channel = split[0]
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))
else:
channel = chan
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))
@hook.command(permissions=["op_ban", "op"])