diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-17 20:02:18 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-17 20:02:18 +0800 |
commit | 0487addce5ddefe4bbd9736aaa46644271787315 (patch) | |
tree | e0034cf1af134a584e8b328288b8a110e0bc570c /mbbsd/admin.c | |
parent | 1b0e3ccd58a342a56779dd843abd0f5e3f1c9dea (diff) | |
download | pttbbs-0487addce5ddefe4bbd9736aaa46644271787315.tar pttbbs-0487addce5ddefe4bbd9736aaa46644271787315.tar.gz pttbbs-0487addce5ddefe4bbd9736aaa46644271787315.tar.bz2 pttbbs-0487addce5ddefe4bbd9736aaa46644271787315.tar.lz pttbbs-0487addce5ddefe4bbd9736aaa46644271787315.tar.xz pttbbs-0487addce5ddefe4bbd9736aaa46644271787315.tar.zst pttbbs-0487addce5ddefe4bbd9736aaa46644271787315.zip |
- (internal) change chat to use vgetstring with new callback system
- (internal) move DBCS API to string lib
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4176 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 66aec48a..6855daf0 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -145,25 +145,25 @@ search_key_user(const char *passwdfile, int mode) } else { // search by keytype if ((!keytype || keytype == 1) && - strcasestr(user.userid, key)) + DBCS_strcasestr(user.userid, key)) keymatch = user.userid; else if ((!keytype || keytype == 2) && - strcasestr(user.realname, key)) + DBCS_strcasestr(user.realname, key)) keymatch = user.realname; else if ((!keytype || keytype == 3) && - strcasestr(user.nickname, key)) + DBCS_strcasestr(user.nickname, key)) keymatch = user.nickname; else if ((!keytype || keytype == 4) && - strcasestr(user.address, key)) + DBCS_strcasestr(user.address, key)) keymatch = user.address; else if ((!keytype || keytype == 5) && - strcasestr(user.email, key)) + DBCS_strcasestr(user.email, key)) keymatch = user.email; else if ((!keytype || keytype == 6) && - strcasestr(user.lasthost, key)) + DBCS_strcasestr(user.lasthost, key)) keymatch = user.lasthost; else if ((!keytype || keytype == 7) && - strcasestr(user.justify, key)) + DBCS_strcasestr(user.justify, key)) keymatch = user.justify; } |