}
-
/*
* Per-room callback function for ingest_old_roominfo_and_roompic_files()
*
long pic_msgnum = 0;
char subject[SIZ];
- syslog(LOG_DEBUG, "iorarf_oneroom( %s , %s , %s )", roomname, infofile, picfile);
-
// Test for the presence of a legacy "room info file"
if (!IsEmptyStr(infofile)) {
fp = fopen(infofile, "r");
}
}
fclose(fp);
- // unlink(filename);
+ if (info_msgnum > 0) unlink(infofile);
}
// Test for the presence of a legacy "room picture file" and import it.
}
}
fclose(fp);
- // unlink(filename);
+ if (pic_msgnum > 0) unlink(picfile);
}
// Now we have the message numbers of our new banner and icon. Record them in the room record.
}
-
struct iorarf_list {
struct iorarf_list *next;
char name[ROOMNAMELEN];
syslog(LOG_INFO, "Existing database version on disk is %d", CtdlGetConfigInt("MM_hosted_upgrade_level"));
if (CtdlGetConfigInt("MM_hosted_upgrade_level") < REV_LEVEL) {
- syslog(LOG_WARNING,
- "Server hosted updates need to be processed at this time. Please wait..."
- );
+ syslog(LOG_WARNING, "Server hosted updates need to be processed at this time. Please wait...");
}
else {
return;
CTDL_MODULE_UPGRADE(upgrade)
{
check_server_upgrades();
- ingest_old_roominfo_and_roompic_files(); // FIXME remove this line, it's proper above!!!!
/* return our module id for the Log */
return "upgrade";