Merge pull request #136 from thenoodle68/develop

This is what happens when you don't test things
This commit is contained in:
Luke Rogers 2013-09-04 04:15:52 -07:00
commit cc0231e849

View file

@ -187,10 +187,11 @@ def say(inp, conn=None, chan=None):
If [channel] is blank the bot will say the <message> in the channel
the command was used in."""
inp = inp.split(" ")
message = " ".join(inp[1:])
if inp[0][0] == "#":
message = " ".join(inp[1:])
out = "PRIVMSG %s :%s" % (inp[0], message)
else:
message = " ".join(inp[0:])
out = "PRIVMSG %s :%s" % (chan, message)
conn.send(out)