From 44f47f78f63996a159800bb738cc254b709bb43d Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 1 Jul 2004 14:43:59 +0000 Subject: 1. fix typo in chinese. 2. fix the problem that board name in fpg has the initial number. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2111 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 80c3add4..17a35bc1 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -790,16 +790,16 @@ do_generalboardreply(fileheader_t * fhdr) int invalid_brdname(char *brd) { - register char ch; + register char ch, rv=0; ch = *brd++; if (!isalpha(ch)) - return 1; + rv = 2; while ((ch = *brd++)) { if (not_alnum(ch) && ch != '_' && ch != '-' && ch != '.') - return 1; + return (1|rv); } - return 0; + return rv; } static int -- cgit v1.2.3