diff --git a/ChangeLog b/ChangeLog index 31ea07c5..c422890c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,6 +41,7 @@ v0.71.5 18-Aug-2005 mbsebbs: Code cleanup. Changed syntax for calling mbpasswd. + Blocked sysop to chat and page the sysop. Sysops use mbmon. mbnewusr: Changed syntax for calling mbpasswd. diff --git a/mbsebbs/chat.c b/mbsebbs/chat.c index 8f0be427..12899d85 100644 --- a/mbsebbs/chat.c +++ b/mbsebbs/chat.c @@ -170,7 +170,18 @@ void Chat(char *username, char *channel) rsize = exitinfo.iScreenLen - 5; rpointer = 0; - + + if (SYSOP == TRUE) { + /* + * Forbid the sysop to chat, the sysop MUST use mbmon. + */ + Syslog('+', "The Sysop attempted to chat"); + pout(LIGHTRED, BLACK, (char *)"The Sysop cannot use the bbs to chat! Use mbmon to chat."); + Enter(1); + Pause(); + return; + } + if (username && channel) { colour(LIGHTGREEN, BLACK); PUTCHAR('\007'); diff --git a/mbsebbs/page.c b/mbsebbs/page.c index c17f6fdb..1286123d 100644 --- a/mbsebbs/page.c +++ b/mbsebbs/page.c @@ -56,9 +56,22 @@ void Page_Sysop(char *String) char *Reason, temp[81]; static char buf[128]; + clear(); + + if (SYSOP == TRUE) { + /* + * Forbid the sysop to page, paging himself causes troubles on the + * chatserver, the sysop can only use mbmon. + */ + Syslog('+', "The Sysop attempted to page the Sysop"); + pout(LIGHTRED, BLACK, (char *)"The Sysop cannot page the Sysop!"); + Enter(1); + Pause(); + return; + } + Reason = calloc(81, sizeof(char)); - clear(); /* MBSE BBS Chat */ poutCenter(LIGHTRED, BLACK, (char *) Language(151)); @@ -90,6 +103,7 @@ void Page_Sysop(char *String) locate(7, 2); colour(LIGHTGRAY, BLACK); + temp[0] = '\0'; GetPageStr(temp, 76); if ((strcmp(temp, "")) == 0)