From 7c6453be1ee0e8399599fbee884d01458f96fabe Mon Sep 17 00:00:00 2001 From: Fletcher Boyd Date: Wed, 4 Sep 2013 19:05:39 +0800 Subject: [PATCH] Fixed flawed logic in word construction. --- plugins/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/admin.py b/plugins/admin.py index 70b73ac..851e642 100755 --- a/plugins/admin.py +++ b/plugins/admin.py @@ -187,10 +187,11 @@ def say(inp, conn=None, chan=None): If [channel] is blank the bot will say the 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)