- cprintf("%d Send info...\n", SEND_LISTING);
-
- do {
- client_getln(buf, sizeof buf);
- if (strcmp(buf, "000"))
- fprintf(fp, "%s\n", buf);
- } while (strcmp(buf, "000"));
- fclose(fp);
-
- /* now update the room index so people will see our new info */
- CtdlGetRoomLock(&CCC->room, CCC->room.QRname); /* lock so no one steps on us */
- CtdlPutRoomLock(&CCC->room);
+
+ // We have read the new banner from the user , now save it
+ long new_msgnum = quickie_message("Citadel", NULL, NULL, SYSCONFIGROOM, ChrPtr(NewBanner), FMT_RFC822, "Banner submitted with EINF command");
+ FreeStrBuf(&NewBanner);
+
+ // Update the room record with a pointer to our new banner
+ CtdlGetRoomLock(&CC->room, CC->room.QRname);
+ long old_msgnum = CC->room.msgnum_info;
+ CC->room.msgnum_info = new_msgnum;
+ CtdlPutRoomLock(&CC->room);
+
+ // Delete the old one
+ CtdlDeleteMessages(SYSCONFIGROOM, &old_msgnum, 1, "");