Tweaked error messages in mcitems.py
This commit is contained in:
parent
1a1e1f8479
commit
8538d2a676
1 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ def itemid(input, reply=None):
|
||||||
input = input.lower().strip()
|
input = input.lower().strip()
|
||||||
|
|
||||||
if input == "":
|
if input == "":
|
||||||
reply("No input.")
|
reply("error: no input.")
|
||||||
return
|
return
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
|
@ -58,7 +58,7 @@ def itemid(input, reply=None):
|
||||||
results.append("\x02[%s]\x02 %s" % (id, name))
|
results.append("\x02[%s]\x02 %s" % (id, name))
|
||||||
|
|
||||||
if not len(results):
|
if not len(results):
|
||||||
reply("No matches found.")
|
reply("error: No matches found.")
|
||||||
return
|
return
|
||||||
|
|
||||||
out = ", ".join(results)
|
out = ", ".join(results)
|
||||||
|
@ -83,11 +83,11 @@ def recipe(input, reply=None):
|
||||||
results.append(recipe.line)
|
results.append(recipe.line)
|
||||||
|
|
||||||
if not len(results):
|
if not len(results):
|
||||||
reply("No matches found.")
|
reply("error: no matches found.")
|
||||||
return
|
return
|
||||||
|
|
||||||
if len(results) > 3:
|
if len(results) > 3:
|
||||||
reply("Too many results (%s)" % len(results))
|
reply("error: too many results (%s)" % len(results))
|
||||||
return
|
return
|
||||||
|
|
||||||
for result in results:
|
for result in results:
|
||||||
|
|
Reference in a new issue