mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
plugins/Plugin: Move an if outside of a for loop, since it won't change during the for loop.
This commit is contained in:
parent
3c736cf2b7
commit
915f84cd08
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user