optimized uptime code, fixed bug in ping.py
This commit is contained in:
parent
c0cb9671a1
commit
17ab4e436d
2 changed files with 5 additions and 8 deletions
|
@ -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]
|
||||
|
|
Reference in a new issue