mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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])
|
||||
except registry.NonExistentRegistryEntry:
|
||||
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)
|
||||
|
||||
def finalEval(self):
|
||||
|
Loading…
Reference in New Issue
Block a user