summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-10 23:29:30 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-10 23:29:30 +0800
commit36736d45a8f624bc68831035e65fac5e0bfa54ed (patch)
tree0549097b74134403f1307136d2006881394d9a71 /mbbsd/bbs.c
parent70ad127d32badd2cf5a011982789d930d6cb60c0 (diff)
parent9351e5d49572d05a6aa21309daa315434def299c (diff)
downloadpttbbs-36736d45a8f624bc68831035e65fac5e0bfa54ed.tar
pttbbs-36736d45a8f624bc68831035e65fac5e0bfa54ed.tar.gz
pttbbs-36736d45a8f624bc68831035e65fac5e0bfa54ed.tar.bz2
pttbbs-36736d45a8f624bc68831035e65fac5e0bfa54ed.tar.lz
pttbbs-36736d45a8f624bc68831035e65fac5e0bfa54ed.tar.xz
pttbbs-36736d45a8f624bc68831035e65fac5e0bfa54ed.tar.zst
pttbbs-36736d45a8f624bc68831035e65fac5e0bfa54ed.zip
add some function of fpg
git-svn-id: http://opensvn.csie.org/pttbbs/branches/ptt.fpg@2122 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c8
1 files changed, 4 insertions, 4 deletions
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