summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-02-05 14:59:07 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-02-05 14:59:07 +0800
commitd642d26ec234cffe8ef8848c5080e0ed94e9068a (patch)
tree10ae48f69feba916a701412ef94d5ab6d838627b
parent36c001ebb6ba62097cbba8f0be86f908b706c7db (diff)
downloadpttbbs-d642d26ec234cffe8ef8848c5080e0ed94e9068a.tar
pttbbs-d642d26ec234cffe8ef8848c5080e0ed94e9068a.tar.gz
pttbbs-d642d26ec234cffe8ef8848c5080e0ed94e9068a.tar.bz2
pttbbs-d642d26ec234cffe8ef8848c5080e0ed94e9068a.tar.lz
pttbbs-d642d26ec234cffe8ef8848c5080e0ed94e9068a.tar.xz
pttbbs-d642d26ec234cffe8ef8848c5080e0ed94e9068a.tar.zst
pttbbs-d642d26ec234cffe8ef8848c5080e0ed94e9068a.zip
Rename function to match its real purposes.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5911 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/board.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c
index 9489b65a..18a09292 100644
--- a/pttbbs/mbbsd/board.c
+++ b/pttbbs/mbbsd/board.c
@@ -1495,7 +1495,7 @@ show_brdlist(int head, int clsflag, int newflag)
}
static void
-set_menu_BM(char *BM)
+set_menu_group_op(char *BM)
{
int is_bm = 0;
if (HasUserPerm(PERM_NOCITIZEN))
@@ -1510,6 +1510,7 @@ set_menu_BM(char *BM)
return;
currmode |= MODE_GROUPOP;
+
// XXX 不是很確定是否該在這邊 save level?
if (!HasUserPerm(PERM_SYSSUBOP) || !HasUserPerm(PERM_BM))
pwcuBitEnableLevel(PERM_SYSSUBOP | PERM_BM);
@@ -1897,7 +1898,7 @@ choose_board(int newflag)
class_bid = -1; /* 熱門群組用 */
if (!GROUPOP()) /* 如果還沒有小組長權限 */
- set_menu_BM(B_BH(ptr)->BM);
+ set_menu_group_op(B_BH(ptr)->BM);
if (now < B_BH(ptr)->bupdate) {
int mr = 0;