Added default-to-important-plugins behavior back.

This commit is contained in:
Jeremy Fincher 2005-02-18 06:30:22 +00:00
parent 2a75f4b83d
commit 2f928e9888
1 changed files with 8 additions and 0 deletions

View File

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