X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserver%2Fmodules%2Fexpire%2Fserv_expire.c;h=e25a184487071c2006753c4d874e593fc33ca19e;hb=954e5749b5e0102f8598fcc19fc10267f31a6cda;hp=ff1f9455276c42b9996aee4e6be081fbdd0b2bc5;hpb=dfdf0c6bc52d833f7fb0daaf9e33e4dab43ab8da;p=citadel.git diff --git a/citadel/server/modules/expire/serv_expire.c b/citadel/server/modules/expire/serv_expire.c index ff1f94552..e25a18448 100644 --- a/citadel/server/modules/expire/serv_expire.c +++ b/citadel/server/modules/expire/serv_expire.c @@ -320,14 +320,13 @@ int PurgeRooms(void) { while (RoomPurgeList != NULL) { if (CtdlGetRoom(&qrbuf, RoomPurgeList->name) == 0) { transcript=realloc(transcript, strlen(transcript)+SIZ); - snprintf(&transcript[strlen(transcript)], SIZ, " %s\n", - qrbuf.QRname); + snprintf(&transcript[strlen(transcript)], SIZ, " %s\n", qrbuf.QRname); CtdlDeleteRoom(&qrbuf); + ++num_rooms_purged; } pptr = RoomPurgeList->next; free(RoomPurgeList); RoomPurgeList = pptr; - ++num_rooms_purged; } if (num_rooms_purged > 0) CtdlAideMessage(transcript, "Room Autopurger Message"); @@ -464,8 +463,7 @@ int PurgeUsers(void) { strcpy(transcript, "The following users have been auto-purged:\n"); while (UserPurgeList != NULL) { transcript=realloc(transcript, strlen(transcript)+SIZ); - snprintf(&transcript[strlen(transcript)], SIZ, " %s\n", - UserPurgeList->name); + snprintf(&transcript[strlen(transcript)], SIZ, " %s\n", UserPurgeList->name); purge_user(UserPurgeList->name); pptr = UserPurgeList->next; free(UserPurgeList); @@ -503,7 +501,7 @@ int PurgeUsers(void) { // traverse the visit file, checking each record against those two lists and // purging the ones that do not have a match on _both_ lists. (Remember, if // either the room or user being referred to is no longer on the system, the -// record is completely useless.) +// record is useless and should be removed.) // int PurgeVisits(void) { struct cdbdata *cdbvisit;