Patches from Bobby Cabral to mbsebbs

This commit is contained in:
Michiel Broek 2001-11-08 22:45:15 +00:00
parent 4cf5ce6699
commit c74db44255
4 changed files with 20 additions and 8 deletions

View File

@ -35,3 +35,5 @@ Johan Lindh
William McBrine
Harald Wuensch
NERvOus nervous@nervous.it
Bobby Cabral bobbyc@digitelone.com

View File

@ -4249,6 +4249,10 @@ v0.33.19 26-Oct-2001
simple one will be created.
If a user saves a new message at the bbs, the message will be
signed using the .signature file.
Patches from Bobby Cabral:
- Fixed display file with more that stopped after every line.
- Added display file "mainlogo" before the "welcome" file.
- Added display files "welcome2..9" after "welcome1" file.
mbtask:
Changed to handle the External Doors flag in the lastcaller

View File

@ -1,8 +1,7 @@
/*****************************************************************************
*
* File ..................: bbs/misc.c
* $Id$
* Purpose ...............: Misc functions
* Last modification date : 26-Oct-2001
*
*****************************************************************************
* Copyright (C) 1997-2001
@ -60,7 +59,7 @@ int LC_Door = FALSE;
int MoreFile(char *filename)
{
char Buf[80];
char Buf[81];
static FILE *fptr;
int lines;
int input;
@ -77,7 +76,7 @@ int MoreFile(char *filename)
printf("\n");
while (fgets(Buf,80,fptr) != NULL) {
if ( (lines != 0) || (ignore) ) {
if ((lines != 0) || (ignore)) {
lines--;
printf("%s",Buf);
}
@ -107,9 +106,8 @@ int MoreFile(char *filename)
else
lines = maxlines;
}
printf("\n\n");
Pause();
}
Pause();
fclose(fptr);
return 1;
}

View File

@ -1,10 +1,9 @@
/*****************************************************************************
*
* File ..................: bbs/user.c
* $Id$
* Purpose ...............: Main user login procedure. Checks for limits,
* new ratio's cats all the welcome screens, and
* does a lot of checking in general.
* Last modification date : 27-Oct-2001
*
*****************************************************************************
* Copyright (C) 1997-2001
@ -1042,6 +1041,7 @@ void user()
Time2Go += usrconfig.iTimeLeft * 60;
iUserTimeLeft = usrconfig.iTimeLeft;
DisplayFile((char *)"mainlogo");
DisplayFile((char *)"welcome");
/*
@ -1050,6 +1050,14 @@ void user()
*/
if (exitinfo.ieNEWS) {
DisplayFile((char *)"welcome1");
DisplayFile((char *)"welcome2");
DisplayFile((char *)"welcome3");
DisplayFile((char *)"welcome4");
DisplayFile((char *)"welcome5");
DisplayFile((char *)"welcome6");
DisplayFile((char *)"welcome7");
DisplayFile((char *)"welcome8");
DisplayFile((char *)"welcome9");
sprintf(temp, "%s", (char *) GetDateDMY() );
if ((strcmp(usrconfig.sDateOfBirth, temp)) == 0)