summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-11-15 23:57:25 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-11-15 23:57:25 +0800
commit46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48 (patch)
tree96a334053e3166f95dec80ba9b5c1759dbda8aa4 /mbbsd/chat.c
parent8fd6a97dd9ba2275cc628fa3c529f07a927a8acc (diff)
downloadpttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar
pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.gz
pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.bz2
pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.lz
pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.xz
pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.tar.zst
pttbbs-46e9fa78b7a1f2b6368c8b6cb3c7c0f0f6909b48.zip
add restriction to PERM_VIOLATELAW
no chat no write no plan file git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3238 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r--mbbsd/chat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index 917f8c8d..fc8507d1 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -318,6 +318,12 @@ t_chat(void)
char fpath[80];
struct ChatBuf chatbuf;
+ if(HasUserPerm(PERM_VIOLATELAW))
+ {
+ vmsg("請先繳罰單才能使用聊天室!");
+ return -1;
+ }
+
memset(&chatbuf, 0, sizeof(chatbuf));
outs(" 驅車前往 請梢候........ ");