fixes
This commit is contained in:
parent
9d0e704eae
commit
921c16cf7c
1 changed files with 6 additions and 7 deletions
|
@ -88,7 +88,7 @@ def raw(inp, conn=None, notice=None):
|
||||||
|
|
||||||
|
|
||||||
@hook.command(adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
def kick(inp, input=None, chan=None, conn=None, notice=None):
|
def kick(inp, chan=None, conn=None, notice=None):
|
||||||
".kick [channel] <user> [reason] -- Makes the bot kick <user> in [channel] "\
|
".kick [channel] <user> [reason] -- Makes the bot kick <user> in [channel] "\
|
||||||
"If [channel] is blank the bot will kick the <user> in "\
|
"If [channel] is blank the bot will kick the <user> in "\
|
||||||
"the channel the command was used in."
|
"the channel the command was used in."
|
||||||
|
@ -104,9 +104,8 @@ def kick(inp, input=None, chan=None, conn=None, notice=None):
|
||||||
reason = reason[:-1]
|
reason = reason[:-1]
|
||||||
out = out + " :" + reason
|
out = out + " :" + reason
|
||||||
else:
|
else:
|
||||||
chan = input.chan
|
|
||||||
user = split[0]
|
user = split[0]
|
||||||
out = "KICK %s %s" % (input.chan, split[0])
|
out = "KICK %s %s" % (chan, split[0])
|
||||||
if len(split) > 1:
|
if len(split) > 1:
|
||||||
reason = ""
|
reason = ""
|
||||||
for x in split[1:]:
|
for x in split[1:]:
|
||||||
|
@ -119,7 +118,7 @@ def kick(inp, input=None, chan=None, conn=None, notice=None):
|
||||||
|
|
||||||
|
|
||||||
@hook.command(adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
def say(inp, conn=None, notice=None):
|
def say(inp, conn=None, chan=None, notice=None):
|
||||||
".say [channel] <message> -- Makes the bot say <message> in [channel]. "\
|
".say [channel] <message> -- Makes the bot say <message> in [channel]. "\
|
||||||
"If [channel] is blank the bot will say the <message> in "\
|
"If [channel] is blank the bot will say the <message> in "\
|
||||||
"the channel the command was used in."
|
"the channel the command was used in."
|
||||||
|
@ -135,13 +134,13 @@ def say(inp, conn=None, notice=None):
|
||||||
for x in split[0:]:
|
for x in split[0:]:
|
||||||
message = message + x + " "
|
message = message + x + " "
|
||||||
message = message[:-1]
|
message = message[:-1]
|
||||||
out = "PRIVMSG %s :%s" % (input.chan, message)
|
out = "PRIVMSG %s :%s" % (chan, message)
|
||||||
conn.send(out)
|
conn.send(out)
|
||||||
|
|
||||||
|
|
||||||
@hook.command("me", adminonly=True)
|
@hook.command("me", adminonly=True)
|
||||||
@hook.command(adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
def act(inp, conn=None, notice=None):
|
def act(inp, conn=None, chan=None, notice=None):
|
||||||
".act [channel] <action> -- Makes the bot act out <action> in [channel] "\
|
".act [channel] <action> -- Makes the bot act out <action> in [channel] "\
|
||||||
"If [channel] is blank the bot will act the <action> in "\
|
"If [channel] is blank the bot will act the <action> in "\
|
||||||
"the channel the command was used in."
|
"the channel the command was used in."
|
||||||
|
@ -162,7 +161,7 @@ def act(inp, conn=None, notice=None):
|
||||||
|
|
||||||
|
|
||||||
@hook.command(adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
def topic(inp, input=None, notice=None):
|
def topic(inp, conn=None, chan=None, notice=None):
|
||||||
".topic [channel] <topic> -- Change the topic of a channel."
|
".topic [channel] <topic> -- Change the topic of a channel."
|
||||||
split = inp.split(" ")
|
split = inp.split(" ")
|
||||||
if split[0][0] == "#":
|
if split[0][0] == "#":
|
||||||
|
|
Reference in a new issue