aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-junk-hook.c
diff options
context:
space:
mode:
authorVivek Jain <jvivek@novell.com>2005-10-26 18:25:42 +0800
committerJain Vivek <jvivek@src.gnome.org>2005-10-26 18:25:42 +0800
commiteec09a3e6b0f364fbe1db4c0915dad8df4acb875 (patch)
treee436a38fb8ec1d4aa9e84fe2db9c666437bbdbed /mail/em-junk-hook.c
parentc38f4954e131417f113a239831518d14ab5709fc (diff)
downloadgsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar
gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.gz
gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.bz2
gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.lz
gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.xz
gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.tar.zst
gsoc2013-evolution-eec09a3e6b0f364fbe1db4c0915dad8df4acb875.zip
**See #313096
2005-10-26 Vivek Jain <jvivek@novell.com> **See #313096 * em-junk-hook.c: (emjh_construct) load the plugin only if it is enabled. svn path=/trunk/; revision=30567
Diffstat (limited to 'mail/em-junk-hook.c')
-rw-r--r--mail/em-junk-hook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/em-junk-hook.c b/mail/em-junk-hook.c
index af61459f4d..b02bc4cb59 100644
--- a/mail/em-junk-hook.c
+++ b/mail/em-junk-hook.c
@@ -249,8 +249,8 @@ emjh_construct(EPluginHook *eph, EPlugin *ep, xmlNodePtr root)
if (((EPluginHookClass *)emjh_parent_class)->construct(eph, ep, root) == -1)
return -1;
- if (loaded) {
- g_warning ("Can't load multiple plugins to this hook:ignored");
+ if (!ep->enabled || loaded) {
+ g_warning ("ignored this junk plugin: not enabled or we have already loaded one");
return -1;
}