summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/talk.c4
1 files changed, 3 insertions, 1 deletions
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))
{