optimized uptime code, fixed bug in ping.py

This commit is contained in:
neersighted 2012-03-30 15:04:11 -07:00
parent c0cb9671a1
commit 17ab4e436d
2 changed files with 5 additions and 8 deletions

View file

@ -10,9 +10,9 @@ ping_regex = re.compile(r"(\d+.\d+)/(\d+.\d+)/(\d+.\d+)/(\d+.\d+)")
@hook.command
def ping(inp, reply=None):
".ping <host> [count] -- Pings <host> [count] times."
if os.name == "nt":
return "Sorry, this command is not supported on Windows systems."
return "Sorry, this command is not supported on Windows systems."
args = inp.split(' ')
host = args[0]