From 8538d2a6760004ec554fce59eaf999792befc259 Mon Sep 17 00:00:00 2001 From: neersighted Date: Sun, 18 Mar 2012 20:07:10 -0700 Subject: [PATCH 1/2] Tweaked error messages in mcitems.py --- plugins/mcitems.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/mcitems.py b/plugins/mcitems.py index 5c3b758..2fbb92c 100644 --- a/plugins/mcitems.py +++ b/plugins/mcitems.py @@ -48,7 +48,7 @@ def itemid(input, reply=None): input = input.lower().strip() if input == "": - reply("No input.") + reply("error: no input.") return results = [] @@ -58,7 +58,7 @@ def itemid(input, reply=None): results.append("\x02[%s]\x02 %s" % (id, name)) if not len(results): - reply("No matches found.") + reply("error: No matches found.") return out = ", ".join(results) @@ -83,11 +83,11 @@ def recipe(input, reply=None): results.append(recipe.line) if not len(results): - reply("No matches found.") + reply("error: no matches found.") return if len(results) > 3: - reply("Too many results (%s)" % len(results)) + reply("error: too many results (%s)" % len(results)) return for result in results: From 9161fae6d6ae2cd8d3cce51e4974e2950280cd52 Mon Sep 17 00:00:00 2001 From: neersighted Date: Sun, 18 Mar 2012 20:09:26 -0700 Subject: [PATCH 2/2] Fixed help message in mctools.py --- plugins/mctools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mctools.py b/plugins/mctools.py index f70bb73..399c4fd 100755 --- a/plugins/mctools.py +++ b/plugins/mctools.py @@ -62,7 +62,7 @@ from util import hook @hook.command def mcping(inp): - ".mcping server[:port] - Ping a Minecraft server to check status." + ".mcping [:port] - Ping a Minecraft server to check status." inp = inp.strip().split(" ")[0] if ":" in inp: @@ -70,7 +70,7 @@ def mcping(inp): try: port = int(port) except: - return "Invalid port!" + return "error: invalid port!" else: host = inp port = 25565