From 9f2890441dfca7745fa8cbf84f77f106425c6db4 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Mon, 17 Jun 2019 16:22:30 -0400 Subject: [PATCH] cleanup --- sopel_modules/SpiceBot_Core_Commands/Sherlock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot_Core_Commands/Sherlock.py b/sopel_modules/SpiceBot_Core_Commands/Sherlock.py index c30a9b6..86e5c4b 100644 --- a/sopel_modules/SpiceBot_Core_Commands/Sherlock.py +++ b/sopel_modules/SpiceBot_Core_Commands/Sherlock.py @@ -37,10 +37,10 @@ def bot_command_sherlock(bot, trigger): else: notinlist.append(social_network) - if inlist != []: + if len(inlist): if checklistname != 'all': bot.osd(["The username " + username + " is in " + checklist[0], SpiceBot.sherlock.dict.get(social_network).get("url").format(username)]) else: bot.osd(["The username " + username + " is in the following:", spicemanip.main(inlist, "andlist")]) - if notinlist != []: + if len(notinlist): bot.osd(["The username " + username + " is NOT in the following:", spicemanip.main(notinlist, "andlist")])