From 2f928e9888a81027d6a4747d1f7d8fe952bba124 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 18 Feb 2005 06:30:22 +0000 Subject: [PATCH] Added default-to-important-plugins behavior back. --- src/callbacks.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/callbacks.py b/src/callbacks.py index 1d9794779..fc0dfd8a9 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -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):