diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-27 23:03:31 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-27 23:03:31 +0800 |
commit | 026445058b1bf165e88b88fb191be076b52f2088 (patch) | |
tree | 5a516e6884440332f9e43cb254f1bdc103dd6806 | |
parent | 5139198f3682c035d52ab432d6fe55336c847afb (diff) | |
download | pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.gz pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.bz2 pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.lz pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.xz pttbbs-026445058b1bf165e88b88fb191be076b52f2088.tar.zst pttbbs-026445058b1bf165e88b88fb191be076b52f2088.zip |
- check send mail permission
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4250 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mail.c | 6 | ||||
-rw-r--r-- | mbbsd/talk.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index c8bef300..4030c6db 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -498,6 +498,9 @@ m_send(void) // in-site mail char uident[IDLEN+1]; + if (!HasUserPerm(PERM_LOGINOK)) + return DONOTHING; + vs_hdr("�����H�H"); usercomplete(msg_uid, uident); showplans(uident); @@ -833,6 +836,9 @@ m_forward(int ent, fileheader_t * fhdr, const char *direct) { char uid[STRLEN]; + if (!HasUserPerm(PERM_LOGINOK)) + return DONOTHING; + vs_hdr("��F�H��"); usercomplete(msg_uid, uid); if (uid[0] == '\0') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 8304a22d..5786eca6 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1897,7 +1897,7 @@ t_showhelp(void) "(��)/(��)(n) �W�U���� (TAB) �����ƧǤ覡\n" "(PgUp)(^B) �W����� ( )(PgDn)(^F) �U�����\n" "(Hm)/($)(Ed) ��/�� (S) �ӷ�/�n�ʹy�z/���Z ����\n" - "(m) �H�H (q/c) �d�ߺ���/�d��\n" + "(m) �H�H (q/Q/c) �d�� ���w/��������/�d��\n" "(r) �\\Ū�H�� (l/C) �ݤW�����T/��������\n" "(f) ����/�n�ͦC�� (�Ʀr) ���ܸӨϥΪ�\n" "(p) �����I�s�� (g/i) ����/�����߱�\n" |