From dce3c35424514c1a9435afcc645f10e2b142e2ae Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Thu, 4 Apr 2013 22:50:35 +0800 Subject: [PATCH] Fixed colors on .mcstatus --- plugins/mctools.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/mctools.py b/plugins/mctools.py index 4d10039..0c1d464 100755 --- a/plugins/mctools.py +++ b/plugins/mctools.py @@ -73,15 +73,14 @@ def mcstatus(inp, say=None): data = json.loads(request.replace("}", "").replace("{", "").replace("]", "}").replace("[", "{")) out = [] - out.append("\x039") # use a loop so we don't have to update it if they add more servers for server, status in data.items(): if status == "green": - out.append("{} is \x033\x02online\x02\x039".format(server)) + out.append("{} is \x033\x02online\x02\x033".format(server)) else: - out.append("{} is \x034\x02offline\x02\x039".format(server)) + out.append("{} is \x034\x02offline\x02\x033".format(server)) - return ", ".join(out) + "." + return "\x033" + ", ".join(out) + "." @hook.command("haspaid")