From 21d1bddf9557b50c6ff56b04c0d19dc6ef8aeddc Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 17 Apr 2013 02:58:00 -0300 Subject: Fixed Bug #7169 users can no longer attack while in chat rooms. Special Thanks to Judas! http://hercules.ws/board/tracker/issue-7169-chat-room-still-allows-attacking/ Signed-off-by: shennetsind --- src/map/chat.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/map') diff --git a/src/map/chat.c b/src/map/chat.c index f908e94ef..a18e87eef 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -96,15 +96,14 @@ int chat_createpcchat(struct map_session_data* sd, const char* title, const char pc_stop_walking(sd,1); cd = chat_createchat(&sd->bl, title, pass, limit, pub, 0, "", 0, 1, MAX_LEVEL); - if( cd ) - { + if( cd ) { cd->users = 1; cd->usersd[0] = sd; pc_setchatid(sd,cd->bl.id); + pc_stop_attack(sd); clif->createchat(sd,0); clif->dispchat(cd,0); - } - else + } else clif->createchat(sd,1); return 0; -- cgit v1.2.3-70-g09d2