commit d373caafbd16b988b8075530758b594c566737c6
parent bcaf7438a564359f3545c6020e593e59fb508dda
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Sun, 13 Nov 2016 01:01:27 +0100
Fix strange naming bug
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/__init__.py b/__init__.py
@@ -247,17 +247,15 @@ def iitc(bot, event, *args):
if bot.memory.exists(["iitc_plugins"]):
plugins = []
for plugin_objects in bot.memory.get_by_path(["iitc_plugins"]):
- url_helper = []
- x = 0
+ list = []
for attribute, value in plugin_objects.items():
for plugin_name in plugin_names:
if attribute == "url":
- url_helper.append(value)
+ list.append(value)
if attribute == "name":
if value == plugin_name:
- plugin = url_helper[x]
+ plugin = list[0]
plugins.append(value)
- x += 1
else:
plugin = ''
try: