the bayesian plugin is a service, so do get service. thanks to beard for pointing this out.

part of bug #169638.  r=dmose. a=asa, since this doesn't affect end users.
This commit is contained in:
sspitzer%netscape.com 2002-10-11 23:41:37 +00:00
parent 668e25f0ae
commit e667d645c7

View File

@ -1988,10 +1988,8 @@ nsMsgIncomingServer::GetSpamFilterPlugin(nsIMsgFilterPlugin **aFilterPlugin)
{
nsresult rv;
// create the plugin object
//
mFilterPlugin = do_CreateInstance(
"@mozilla.org/messenger/filter-plugin;1?name=bayesianfilter", &rv);
// get the plugin service
mFilterPlugin = do_GetService("@mozilla.org/messenger/filter-plugin;1?name=bayesianfilter", &rv);
if (NS_FAILED(rv)) {
NS_ERROR("nsMsgIncomingServer::InitializeFilterPlugins():"