From: Art Cancro Date: Tue, 1 Jun 2004 03:32:29 +0000 (+0000) Subject: * Add "permanent room" setting to room edit screen X-Git-Tag: v7.86~5416 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=18b3230ca0d72695f16eaab213f5e691591a12de;p=citadel.git * Add "permanent room" setting to room edit screen * create room -- allow longer strings --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 22508c26c..1ae01db18 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 510.8 2004/06/01 03:32:28 ajc +* Add "permanent room" setting to room edit screen +* create room -- allow longer strings + Revision 510.7 2004/06/01 00:36:43 ajc * Hmmph. Do the session cookie as hex instead of base64. There really are some characters in the base64 set that make HTTP do nasty things. @@ -1834,4 +1838,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/roomops.c b/webcit/roomops.c index eab01a968..771650633 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -933,6 +933,11 @@ void display_editroom(void) wprintf("CHECKED "); wprintf("> Network shared room\n"); + wprintf("
  • Permanent (does not auto-purge)\n"); + /* start of anon options */ wprintf("
  • Anonymous messages
      \n"); @@ -1246,6 +1251,12 @@ void editroom(void) er_flags &= ~QR_READONLY; } + if (!strcmp(bstr("permanent"), "yes")) { + er_flags |= QR_PERMANENT; + } else { + er_flags &= ~QR_PERMANENT; + } + if (!strcmp(bstr("network"), "yes")) { er_flags |= QR_NETWORK; } else { @@ -1427,7 +1438,7 @@ void display_entroom(void) wprintf("
      \n"); wprintf("
      • Name of room: "); - wprintf("\n"); + wprintf("\n"); wprintf("
      • Resides on floor: "); load_floorlist(); @@ -1529,9 +1540,9 @@ void er_set_default_view(int newview) { void entroom(void) { char buf[SIZ]; - char er_name[20]; - char er_type[20]; - char er_password[10]; + char er_name[SIZ]; + char er_type[SIZ]; + char er_password[SIZ]; int er_floor; int er_num_type;