Blocked selection of FTN and Usenet moderated message areas

This commit is contained in:
Michiel Broek 2007-10-14 13:27:55 +00:00
parent e58d20dc08
commit 19bcce90ab
3 changed files with 34 additions and 28 deletions

View File

@ -12,6 +12,9 @@ v0.91.13 12-Oct-2007
mbnewusr: mbnewusr:
Added GeoIP support. Added GeoIP support.
mbsetup:
Blocked selection of FTN and Usenet moderated message areas.
v0.91.12 24-Sep-2007 - 12-Oct-2007 v0.91.12 24-Sep-2007 - 12-Oct-2007

View File

@ -14,7 +14,7 @@
</HEAD> </HEAD>
<BODY> <BODY>
<BLOCKQUOTE> <BLOCKQUOTE>
<div align="right"><h5>Last update 23-Feb-2004</h5></div> <div align="right"><h5>Last update 14-Oct-2007</h5></div>
<div align="center"><H1>MBSE BBS Setup - Mail Setup -> Mail Areas.</H1></div> <div align="center"><H1>MBSE BBS Setup - Mail Setup -> Mail Areas.</H1></div>
<H3>Introduction.</H3> <H3>Introduction.</H3>
@ -47,7 +47,7 @@ change netmail reply board and delete message area.
<strong>QWK name </strong>The name of the area for OffLine Readers. <strong>QWK name </strong>The name of the area for OffLine Readers.
<strong>Distrib. </strong>Leave this blank for now! <strong>Distrib. </strong>Leave this blank for now!
<strong>Area Type </strong>Local, Netmail, Echomail or News. <strong>Area Type </strong>Local, Netmail, Echomail or News.
<strong>Msg Kinds </strong>Private/Public, Private, Public, Read Only, FTN moderated, Usenet Moderated <strong>Msg Kinds </strong>Private/Public, Private, Public, Read Only.
<strong>Charset </strong>Default characterset for the area <strong>Charset </strong>Default characterset for the area
<strong>Active </strong>If this area is active. <strong>Active </strong>If this area is active.
<strong>Days Old </strong>The maximum age of the messages before purging. <strong>Days Old </strong>The maximum age of the messages before purging.

View File

@ -1626,15 +1626,15 @@ int edit_emailmode(int y, int x, int val)
char *getmsgkinds(int val) char *getmsgkinds(int val)
{ {
switch (val) { switch (val) {
case BOTH: return (char *)"Private/Public "; case BOTH: return (char *)"Private/Public ";
case PRIVATE: return (char *)"Private only "; case PRIVATE: return (char *)"Private only ";
case PUBLIC: return (char *)"Public only "; case PUBLIC: return (char *)"Public only ";
case RONLY: return (char *)"Read Only "; case RONLY: return (char *)"Read Only ";
case FTNMOD: return (char *)"FTN moderated "; case FTNMOD: return (char *)"FTN_mod obsolete";
case USEMOD: return (char *)"Usenet moderated"; case USEMOD: return (char *)"USE_mod obsolete";
default: return NULL; default: return NULL;
} }
} }
@ -1648,25 +1648,28 @@ void show_msgkinds(int y, int x, int val)
int edit_msgkinds(int y, int x, int val) int edit_msgkinds(int y, int x, int val)
{ {
int ch; int ch;
showhelp((char *)"Toggle ^Message Kinds^ with spacebar, press <Enter> whene done."); showhelp((char *)"Toggle ^Message Kinds^ with spacebar, press <Enter> whene done.");
do { do {
set_color(YELLOW, BLUE); set_color(YELLOW, BLUE);
show_msgkinds(y, x, val);
ch = readkey(y, x, YELLOW, BLUE);
if (ch == ' ') {
if (val < USEMOD)
val++;
else
val = BOTH;
}
} while (ch != KEY_ENTER && ch != '\012');
set_color(WHITE, BLACK);
show_msgkinds(y, x, val); show_msgkinds(y, x, val);
return val;
ch = readkey(y, x, YELLOW, BLUE);
if (ch == ' ') {
/*
* Node, defined upto USEMOD, but we only use upto RONLY.
*/
if (val < RONLY)
val++;
else
val = BOTH;
}
} while (ch != KEY_ENTER && ch != '\012');
set_color(WHITE, BLACK);
show_msgkinds(y, x, val);
return val;
} }