diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-18 14:00:40 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-18 14:00:40 +0800 |
commit | 09dcd2bcb7d36c679d54aaf5339d71b289495be3 (patch) | |
tree | 972386cda82b8a4ef5b869c42242fca2e347d891 /mbbsd/talk.c | |
parent | f7f6cc32eb4cc5c7a508046381fe4e4aa6992c2e (diff) | |
download | pttbbs-09dcd2bcb7d36c679d54aaf5339d71b289495be3.tar pttbbs-09dcd2bcb7d36c679d54aaf5339d71b289495be3.tar.gz pttbbs-09dcd2bcb7d36c679d54aaf5339d71b289495be3.tar.bz2 pttbbs-09dcd2bcb7d36c679d54aaf5339d71b289495be3.tar.lz pttbbs-09dcd2bcb7d36c679d54aaf5339d71b289495be3.tar.xz pttbbs-09dcd2bcb7d36c679d54aaf5339d71b289495be3.tar.zst pttbbs-09dcd2bcb7d36c679d54aaf5339d71b289495be3.zip |
fix domenu's bug
limit some function to permission PERM_LOGINOK
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2517 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index c7db75f1..6d14f4c9 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2647,10 +2647,12 @@ userlist(void) break; case 'N': - oldgetdata(1, 0, "·sªº¼ÊºÙ: ", - cuser.username, sizeof(cuser.username), DOECHO); - strcpy(currutmp->username, cuser.username); - redrawall = redraw = 1; + if (HAS_PERM(PERM_LOGINOK)) { + oldgetdata(1, 0, "·sªº¼ÊºÙ: ", + cuser.username, sizeof(cuser.username), DOECHO); + strcpy(currutmp->username, cuser.username); + redrawall = redraw = 1; + } break; case 'y': |