diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-11 00:47:34 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-11 00:47:34 +0800 |
commit | 1b1142e4431812346c0d49e9581b6c1a964e949d (patch) | |
tree | 0bbfd351539dbd6505dcbd8c601adbd3558fbc53 /mbbsd/admin.c | |
parent | cc97eef7be4a7c4beeff5789e00bedbe505a3e85 (diff) | |
download | pttbbs-1b1142e4431812346c0d49e9581b6c1a964e949d.tar pttbbs-1b1142e4431812346c0d49e9581b6c1a964e949d.tar.gz pttbbs-1b1142e4431812346c0d49e9581b6c1a964e949d.tar.bz2 pttbbs-1b1142e4431812346c0d49e9581b6c1a964e949d.tar.lz pttbbs-1b1142e4431812346c0d49e9581b6c1a964e949d.tar.xz pttbbs-1b1142e4431812346c0d49e9581b6c1a964e949d.tar.zst pttbbs-1b1142e4431812346c0d49e9581b6c1a964e949d.zip |
* add is_valid_brdname() to cmbbs
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4553 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index b6a5b963..84bf25ea 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -610,7 +610,7 @@ m_mod_board(char *bname) if (getbnum(genbuf)) { move(3, 0); outs("錯誤! 板名雷同"); - } else if ( !invalid_brdname(genbuf) ){ + } else if ( is_valid_brdname(genbuf) ){ strlcpy(newbh.brdname, genbuf, sizeof(newbh.brdname)); break; } @@ -927,7 +927,7 @@ m_newbrd(int whatclass, int recover) if (!getdata(3, 0, msg_bid, newboard.brdname, sizeof(newboard.brdname), DOECHO)) return -1; - } while (invalid_brdname(newboard.brdname)); + } while (!is_valid_brdname(newboard.brdname)); do { getdata(6, 0, "看板類別:", genbuf, 5, DOECHO); |