diff --git a/plugins/ping.py b/plugins/ping.py index c9424da..9710fd7 100755 --- a/plugins/ping.py +++ b/plugins/ping.py @@ -2,6 +2,7 @@ from util import hook import subprocess import re +import os ping_regex = re.compile(r"(\d+.\d+)/(\d+.\d+)/(\d+.\d+)/(\d+.\d+)") @@ -9,10 +10,14 @@ ping_regex = re.compile(r"(\d+.\d+)/(\d+.\d+)/(\d+.\d+)/(\d+.\d+)") @hook.command def ping(inp, reply=None): ".ping [count] -- Pings [count] times." + + if os.name == "nt": + return "Sorry, this command is not supported on Windows systems." args = inp.split(' ') host = args[0] + # check for a seccond argument and set the ping count if len(args) > 1: count = int(args[1]) if count > 20: