From 1940ae536b2991ccc8239f28604aa7268615b65c Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 7 Jun 2010 22:38:26 +0000 Subject: * add message for insufficient perm to chatroom git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5052 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/talk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pttbbs/mbbsd/talk.c b/pttbbs/mbbsd/talk.c index bf64f983..5014e295 100644 --- a/pttbbs/mbbsd/talk.c +++ b/pttbbs/mbbsd/talk.c @@ -3052,8 +3052,10 @@ t_chat(void) static time4_t lastEnter = 0; int fd; - if (!HasUserPerm(PERM_CHAT)) + if (!HasUserPerm(PERM_CHAT)) { + vmsg("權限不足,無法進入聊天室。"); return -1; + } if(HasUserPerm(PERM_VIOLATELAW)) { -- cgit v1.2.3