diff options
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 003ff719..d487eca3 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -2033,12 +2033,13 @@ check_ban_and_load(int fd, struct ProgramOption *option) * sec */ static int banned = 0; -#ifdef INSCREEN + // if you have your own banner, define as INSCREEN in pttbbs.conf + // if you don't want anny benner, define NO_INSCREEN +#ifndef NO_INSCREEN +# ifndef INSCREEN +# define INSCREEN "【" BBSNAME "】◎(" MYHOSTNAME ", " MYIP ") \r\n" +# endif write(fd, INSCREEN, sizeof(INSCREEN)); -#else -#define BANNER \ -"【" BBSNAME "】◎ 台大流行網 ◎(" MYHOSTNAME ") 調幅(" MYIP ") \r\n" - write(fd, BANNER, sizeof(BANNER)); #endif if ((time(0) - chkload_time) > 1) { |