From 6d81048d3fd531470569bb7635b16acfa58f4025 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Mon, 2 Apr 2012 01:01:01 +1200 Subject: [PATCH] Fix --- plugins/system.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/system.py b/plugins/system.py index a4477f1..ddbfc6e 100755 --- a/plugins/system.py +++ b/plugins/system.py @@ -48,12 +48,14 @@ def memory(inp): return "Memory Usage: \x02%s MB\x02" % memory else: - return "Operating system not currently supported." + return "Sorry, this command is not supported on your OS." @hook.command(autohelp=False) def uptime(inp): ".uptime -- Shows the bot's uptime." + if os.name not "posix": + return "Sorry, this command is not supported on your OS." up = subprocess.check_output("ps -eo pid,etime | grep %s | awk " \ "'{print $2}'" % os.getpid(), shell=True) return "Uptime: \x02%s\x02" % up