mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Added default-to-important-plugins behavior back.
This commit is contained in:
parent
2a75f4b83d
commit
2f928e9888
@ -651,6 +651,14 @@ class IrcObjectProxy(RichReplyMethods):
|
|||||||
return (maxL, [cb])
|
return (maxL, [cb])
|
||||||
except registry.NonExistentRegistryEntry:
|
except registry.NonExistentRegistryEntry:
|
||||||
pass # No default plugin defined.
|
pass # No default plugin defined.
|
||||||
|
important = defaultPlugins.importantPlugins()
|
||||||
|
important = map(canonicalName, important)
|
||||||
|
importants = []
|
||||||
|
for cb in cbs:
|
||||||
|
if cb.canonicalName() in important:
|
||||||
|
importants.append(cb)
|
||||||
|
if len(importants) == 1:
|
||||||
|
return (maxL, importants)
|
||||||
return (maxL, cbs)
|
return (maxL, cbs)
|
||||||
|
|
||||||
def finalEval(self):
|
def finalEval(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user