From 220fd7d037be64698609d90df9beb8476c3ff737 Mon Sep 17 00:00:00 2001 From: scw Date: Sat, 25 Feb 2006 14:04:47 +0000 Subject: 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 --- mbbsd/user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3