Update mctools.py

This commit is contained in:
Luke Rogers 2013-05-14 01:30:43 +12:00
parent 3d74b7781d
commit c4e5e91c14

View file

@ -79,7 +79,7 @@ def mcstatus(inp, say=None):
except (http.URLError, http.HTTPError) as e:
return "Unable to get Minecraft server status: {}".format(e)
# change the json from a list of dictionaies to a dictionary
# lets just reformat this data to get in a nice format
data = json.loads(request.replace("}", "").replace("{", "").replace("]", "}").replace("[", "{"))
out = []
@ -139,4 +139,4 @@ def mcping(inp):
return "Error pinging %s, is it up? Double-check your address!" % inp
else:
return rdata
return rdata