diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-08 22:01:07 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-08 22:01:07 +0800 |
commit | ea6033df9651149316bd734bc7334f29f5045001 (patch) | |
tree | 2c1afd35f04e06458442e754bcf3924ade3a2b04 /mbbsd/mbbsd.c | |
parent | efe587db4d49f0c12e592fd46cf141f88811a09b (diff) | |
download | pttbbs-ea6033df9651149316bd734bc7334f29f5045001.tar pttbbs-ea6033df9651149316bd734bc7334f29f5045001.tar.gz pttbbs-ea6033df9651149316bd734bc7334f29f5045001.tar.bz2 pttbbs-ea6033df9651149316bd734bc7334f29f5045001.tar.lz pttbbs-ea6033df9651149316bd734bc7334f29f5045001.tar.xz pttbbs-ea6033df9651149316bd734bc7334f29f5045001.tar.zst pttbbs-ea6033df9651149316bd734bc7334f29f5045001.zip |
* minor fixes:
* menu: item name refine
* mbbsd: merge INSCREEN and BANNER.
* logind.h: refine tabs
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4525 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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) { |