Merge pull request #106 from Mu5tank05/patch-4

Language Fix in op.py
This commit is contained in:
Luke Rogers 2013-08-06 03:58:12 -07:00
commit 8b304637eb

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"])
@ -118,4 +118,4 @@ def kick(inp, chan=None, conn=None, notice=None):
out = "KICK {} {}".format(channel, target)
notice("Attempting to kick {} from {}...".format(target, channel))
conn.send(out)
conn.send(out)