From 9b4059fbdfc3ad77a1102dfdac0146797182d97a Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 30 Jun 2006 16:53:56 +0000 Subject: - Added mapflag "nochat" to prevent chatting rooms from being created. - Corrected some of the sleep checks when the char id does not matches with the char-id expected by the script engine. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7423 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/chat.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/chat.c') diff --git a/src/map/chat.c b/src/map/chat.c index 311fe1d8e..8ebd54354 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -12,6 +12,7 @@ #include "clif.h" #include "pc.h" #include "npc.h" +#include "atcommand.h" int chat_triggerevent(struct chat_data *cd); @@ -27,6 +28,11 @@ int chat_createchat(struct map_session_data *sd,int limit,int pub,char* pass,cha if (sd->chatID) return 0; //Prevent people abusing the chat system by creating multiple chats, as pointed out by End of Exam. [Skotlex] + + if (map[sd->bl.m].flag.nochat) { + clif_displaymessage (sd->fd, msg_txt(281)); + return 0; //Can't drop items in nodrop mapflag maps. + } pc_stop_walking(sd,1); cd = (struct chat_data *) aMalloc(sizeof(struct chat_data)); -- cgit v1.2.3-60-g2f50