Fixed help message in mctools.py

This commit is contained in:
neersighted 2012-03-18 20:09:26 -07:00
parent 8538d2a676
commit 9161fae6d6

View file

@ -62,7 +62,7 @@ from util import hook
@hook.command @hook.command
def mcping(inp): def mcping(inp):
".mcping server[:port] - Ping a Minecraft server to check status." ".mcping <server>[:port] - Ping a Minecraft server to check status."
inp = inp.strip().split(" ")[0] inp = inp.strip().split(" ")[0]
if ":" in inp: if ":" in inp:
@ -70,7 +70,7 @@ def mcping(inp):
try: try:
port = int(port) port = int(port)
except: except:
return "Invalid port!" return "error: invalid port!"
else: else:
host = inp host = inp
port = 25565 port = 25565