From 915f84cd08c801e3c8a5a61751490a28113e6b41 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 10 May 2005 22:09:50 +0000 Subject: [PATCH] plugins/Plugin: Move an if outside of a for loop, since it won't change during the for loop. --- plugins/Plugin/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Plugin/plugin.py b/plugins/Plugin/plugin.py index 25cef2b02..eff9732ef 100644 --- a/plugins/Plugin/plugin.py +++ b/plugins/Plugin/plugin.py @@ -71,8 +71,8 @@ class Plugin(callbacks.Plugin): """ (maxL, cbs) = irc.findCallbacksForArgs(command) L = [] - for cb in cbs: - if maxL == command: + if maxL == command: + for cb in cbs: L.append(cb.name()) command = callbacks.formatCommand(command) if L: