diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-14 23:52:34 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-14 23:52:34 +0800 |
commit | 41157b4d4a7c4549b31f88b8ba483ca12c355e48 (patch) | |
tree | bc8d57066c64ba04e5d34148fb8a3e0e105d4fec /mbbsd | |
parent | 36e0dbc04095da5fca4cad9e48f2b07fb1e220c5 (diff) | |
download | pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.gz pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.bz2 pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.lz pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.xz pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.tar.zst pttbbs-41157b4d4a7c4549b31f88b8ba483ca12c355e48.zip |
merge HAVE_PERM() into HasUserPerm()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2842 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/friend.c | 4 | ||||
-rw-r--r-- | mbbsd/indict.c | 2 | ||||
-rw-r--r-- | mbbsd/mail.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c index 3d2898b4..04f2a395 100644 --- a/mbbsd/friend.c +++ b/mbbsd/friend.c @@ -136,7 +136,7 @@ friend_append(int type, int count) ++j; prints(" (%d) %-s\n", j, friend_list[(int)i]); } - if (HAVE_PERM(PERM_SYSOP) || currmode & MODE_BOARD) + if (HasUserPerm(PERM_SYSOP) || currmode & MODE_BOARD) for (; i < 8; ++i) if (i != type) { ++j; @@ -152,7 +152,7 @@ friend_append(int type, int count) j = buf[0] - '1'; if (j >= type) j++; - if (!(HAVE_PERM(PERM_SYSOP) || currmode & MODE_BOARD) && j >= 5) + if (!(HasUserPerm(PERM_SYSOP) || currmode & MODE_BOARD) && j >= 5) return; } while (buf[0] < '1' || buf[0] > '9'); diff --git a/mbbsd/indict.c b/mbbsd/indict.c index c5d530f2..a0504d61 100644 --- a/mbbsd/indict.c +++ b/mbbsd/indict.c @@ -15,7 +15,7 @@ addword(const char *database,char word[]) } fgets(buf, 130, fp); fseek(fp, 0, 2); - if (HAVE_PERM(PERM_LOGINOK)) { + if (HasUserPerm(PERM_LOGINOK)) { clear(); move(4, 0); outs(" " ANSI_COLOR(31) "警告" ANSI_RESET ":若蓄意填寫假資料將" ANSI_COLOR(36) "砍id" ANSI_RESET "處份\n"); diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 74a7f9c5..5c4cdf3e 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -159,7 +159,7 @@ setupmailusage(void) int chkmailbox(void) { - if (!HAVE_PERM(PERM_SYSOP) && !HAVE_PERM(PERM_MAILLIMIT)) { + if (!HasUserPerm(PERM_SYSOP) && !HasUserPerm(PERM_MAILLIMIT)) { if(!mailkeep) setupmailusage(); m_init(); if (mailkeep > mailmaxkeep) { |