not len()

This commit is contained in:
deathbybandaid 2019-09-19 10:08:08 -04:00
parent 84f6026c0b
commit 454019d799

View File

@ -514,6 +514,9 @@ def trigger_hyphen_arg_handler(bot, trigger, botcom):
return False return False
elif botcom.dict["hyphen_arg"] in ['special', 'options']: elif botcom.dict["hyphen_arg"] in ['special', 'options']:
if not len(botcom.dict["dict"]["nonstockoptions"]):
bot.osd("There appear to be no special options for " + str(botcom.dict["realcom"]) + ".")
else:
bot.osd("The special options for " + str(botcom.dict["realcom"]) + " command include: " + spicemanip(botcom.dict["dict"]["nonstockoptions"], "andlist") + ".") bot.osd("The special options for " + str(botcom.dict["realcom"]) + " command include: " + spicemanip(botcom.dict["dict"]["nonstockoptions"], "andlist") + ".")
return False return False