diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-04 21:17:49 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-04 21:17:49 +0800 |
commit | c2a031cc43cf3da1500b0bc084a21f436a41a94d (patch) | |
tree | 21c7182bebcb5b968db46cf03db8fd739066a5ab | |
parent | 20653e638c5cfb115bb9cbd684c18cc00ce9fd79 (diff) | |
download | pttbbs-c2a031cc43cf3da1500b0bc084a21f436a41a94d.tar pttbbs-c2a031cc43cf3da1500b0bc084a21f436a41a94d.tar.gz pttbbs-c2a031cc43cf3da1500b0bc084a21f436a41a94d.tar.bz2 pttbbs-c2a031cc43cf3da1500b0bc084a21f436a41a94d.tar.lz pttbbs-c2a031cc43cf3da1500b0bc084a21f436a41a94d.tar.xz pttbbs-c2a031cc43cf3da1500b0bc084a21f436a41a94d.tar.zst pttbbs-c2a031cc43cf3da1500b0bc084a21f436a41a94d.zip |
fix namecomplete
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1460 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/name.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c index 5c04a54a..4466c462 100644 --- a/mbbsd/name.c +++ b/mbbsd/name.c @@ -670,11 +670,9 @@ completeboard_compar(int where, char *str, int len) { return strncasecmp(SHM->bsorted[0][where]->brdname, str, len); } - -int completeboard_permission(int where) { - return (Ben_Perm(SHM->bsorted[0][where]) && + return (((currmode & MODE_MENU) || Ben_Perm(SHM->bsorted[0][where])) && !(SHM->bsorted[0][where]->brdattr & BRD_GROUPBOARD)); } |