Fix soup & WQK operations on start

This commit is contained in:
Stas Degteff 2011-02-22 11:27:21 +00:00
parent acd96d47bc
commit 177bd5183a

View File

@ -936,6 +936,8 @@ int ReadCfg(const char* cfgfile, int ignoreunknown)
if (inuse == 0)
{
// Mark all areas listed in the NEWSRC file as newsgroups
if (*CFG->soupnewsrcfile)
{
gfile gfp(CFG->soupnewsrcfile, "rt");
if (gfp.isopen())
{
@ -952,9 +954,10 @@ int ReadCfg(const char* cfgfile, int ignoreunknown)
}
gfp.Fclose();
}
}
if(*CFG->soupemail) {
Area* ap = AL.AreaEchoToPtr(buf);
Area* ap = AL.AreaEchoToPtr(CFG->soupemail);
if(ap)
ap->set_type(GMB_SOUP|GMB_EMAIL|GMB_NET);
}
@ -971,7 +974,7 @@ int ReadCfg(const char* cfgfile, int ignoreunknown)
do {
if(QWK->FirstConf()) {
do {
Area* ap = AL.AreaEchoToPtr(buf);
Area* ap = AL.AreaEchoToPtr(QWK->ConfName());
if(ap)
ap->set_type(ap->type() | GMB_QWK);
} while(QWK->NextConf());