Fixed flawed logic in word construction.
This commit is contained in:
parent
2457f6da00
commit
7c6453be1e
1 changed files with 2 additions and 1 deletions
|
@ -187,10 +187,11 @@ def say(inp, conn=None, chan=None):
|
||||||
If [channel] is blank the bot will say the <message> in the channel
|
If [channel] is blank the bot will say the <message> in the channel
|
||||||
the command was used in."""
|
the command was used in."""
|
||||||
inp = inp.split(" ")
|
inp = inp.split(" ")
|
||||||
message = " ".join(inp[1:])
|
|
||||||
if inp[0][0] == "#":
|
if inp[0][0] == "#":
|
||||||
|
message = " ".join(inp[1:])
|
||||||
out = "PRIVMSG %s :%s" % (inp[0], message)
|
out = "PRIVMSG %s :%s" % (inp[0], message)
|
||||||
else:
|
else:
|
||||||
|
message = " ".join(inp[0:])
|
||||||
out = "PRIVMSG %s :%s" % (chan, message)
|
out = "PRIVMSG %s :%s" % (chan, message)
|
||||||
conn.send(out)
|
conn.send(out)
|
||||||
|
|
||||||
|
|
Reference in a new issue