diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-02-25 22:04:47 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-02-25 22:04:47 +0800 |
commit | 220fd7d037be64698609d90df9beb8476c3ff737 (patch) | |
tree | afbbc6d3411be8dc3991f600fc9cc12c8d07b737 /mbbsd | |
parent | cdc303e5890d817862143f63fd3890208ee769d8 (diff) | |
download | pttbbs-220fd7d037be64698609d90df9beb8476c3ff737.tar pttbbs-220fd7d037be64698609d90df9beb8476c3ff737.tar.gz pttbbs-220fd7d037be64698609d90df9beb8476c3ff737.tar.bz2 pttbbs-220fd7d037be64698609d90df9beb8476c3ff737.tar.lz pttbbs-220fd7d037be64698609d90df9beb8476c3ff737.tar.xz pttbbs-220fd7d037be64698609d90df9beb8476c3ff737.tar.zst pttbbs-220fd7d037be64698609d90df9beb8476c3ff737.zip |
Setting angel of a user to "-" means banned and
is accepted.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3274 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 6c7d36f8..6abb08d4 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -694,7 +694,8 @@ uinfo_query(userec_t *u, int adminmode, int unum) userec_t xuser; getdata_str(i, 0, "¤p¤Ñ¨Ï¡G", buf, IDLEN + 1, DOECHO, x.myangel); - if(buf[0] == 0 || (getuser(buf, &xuser) && + if(buf[0] == 0 || strcmp(buf, "-") == 0 || + (getuser(buf, &xuser) && (xuser.userlevel & PERM_ANGEL))){ strlcpy(x.myangel, xuser.userid, IDLEN + 1); ++i; |