summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c3
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;