diff options
| author | FreeArtMan <dos21h@gmail.com> | 2015-01-24 19:43:28 +0900 | 
|---|---|---|
| committer | FreeArtMan <dos21h@gmail.com> | 2015-01-24 19:43:28 +0900 | 
| commit | 3090282601248d3ce5f91cbddeb450d744b27472 (patch) | |
| tree | 30125025d0bb370b886700548e5be25ba0fa0d62 | |
| parent | c49166a323b9a1bb777e949c0bcbedc7eceab3cd (diff) | |
| download | microbbs-3090282601248d3ce5f91cbddeb450d744b27472.tar.gz microbbs-3090282601248d3ce5f91cbddeb450d744b27472.zip | |
Fixed bug with drawing last line in motd. New motd
| -rw-r--r-- | art/motd.txt | 52 | ||||
| -rw-r--r-- | microbbs.c | 2 | ||||
| -rw-r--r-- | motd.c | 3 | ||||
| -rw-r--r-- | user.c | 3 | 
4 files changed, 32 insertions, 28 deletions
| diff --git a/art/motd.txt b/art/motd.txt index a589ca4..3dcf156 100644 --- a/art/motd.txt +++ b/art/motd.txt @@ -1,27 +1,25 @@ -            _                ____  ____   _____         -           (_)              |  _ \|  _ \ / ____|        -  _ __ ___  _  ___ _ __ ___ | |_) | |_) | (___          - | '_ ` _ \| |/ __| '__/ _ \|  _ <|  _ < \___ \         - | | | | | | | (__| | | (_) | |_) | |_) |____) |        - |_| |_|_|_|_|\___|_|  \___/|____/|____/|_____/         - | |   | |                                              - | |__ | |__  ___                                       - | '_ \| '_ \/ __|                                      - | |_) | |_) \__ \_                                     - |_.__/|_.__/|___(_)                                    -   _                _    _                              -  | |              | |  (_)                             -  | |__   __ _  ___| | ___ _ __   __ _                  -  | '_ \ / _` |/ __| |/ / | '_ \ / _` |                 -  | | | | (_| | (__|   <| | | | | (_| |_                -  |_| |_|\__,_|\___|_|\_\_|_| |_|\__, (_)               -                                  __/ |                 -          _ _                    |___/                  -         | | |                     | |                  -     __ _| | | _____      _____  __| |  ___  _ __ __ _  -    / _` | | |/ _ \ \ /\ / / _ \/ _` | / _ \| '__/ _` | -   | (_| | | | (_) \ V  V /  __/ (_| || (_) | | | (_| | -    \__,_|_|_|\___/ \_/\_/ \___|\__,_(_)___/|_|  \__, | -                                                  __/ | -                                                 |___/  -Source: ftp://bbs.hacking.allowed.org/microbbs-0.2.2.tar.gz ++------------------------------------------------------------------------------+ +|                                                                              | +|                                                                              | +|                                                                              | +|                                                                              | +|                                 |\/|    |>|> <                               | +|               ^                 |  |icro|>|> >                               | +|             /   \                                                            | +|           /_______\                                                          | +|            | o o |       bbs.                                                | +|             \ _ /            hacking.                                        | +|           //-| |-\\                 allowed.                                 | +|           \\____ //                        org                               | +|            |\__/ |                                                           | +|            |     |                                                           | +|            |     |                                                           | +|            -------                                                           | +|             || ||                                                            | +|            //  //                                                            | +|                                                                              | +|      Day without work                                                        | +|      Day without food                                                        | +|                       Baizhang Huaihai                               fam     | +|                                                                              | ++------------------------------------------------------------------------------+
\ No newline at end of file @@ -30,7 +30,9 @@ int main( int argc, char **argv )  	term_clr_scr( &ts );  	//init global variable of bbs user +#ifdef CONFIG_LOGIN  	bbs_user_init( &g_user ); +#endif  	//lunch captcha and try to detect if its random bot  #ifdef CONFIG_CAPTCHA @@ -8,7 +8,7 @@ int bbs_motd_draw( term_screen *ts, const char *fname )  {  	int posc=0, posr=0;  	int ret=0; -	const int buf_size=80*25+1; +	const int buf_size=80*26+1;  	char buf[buf_size];  	int x=0,y=0;  	int row=0,column=0; @@ -48,6 +48,7 @@ int bbs_motd_draw( term_screen *ts, const char *fname )  				}  				i++;  			} +			fflush( stdout );  		}  	} @@ -1,5 +1,7 @@  #include "user.h" +#ifdef CONFIG_LOGIN +  int bbs_login( term_screen *ts )  {  	int ret=0; @@ -245,3 +247,4 @@ int bbs_user_get_status( bbs_user *bu )  	return BBS_USER_GUEST;  } +#endif | 
