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

View File

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