plugins/Plugin: Move an if outside of a for loop, since it won't change during the for loop.

This commit is contained in:
James Vega 2005-05-10 22:09:50 +00:00
parent 3c736cf2b7
commit 915f84cd08

View File

@ -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: