summaryrefslogtreecommitdiff
path: root/src/map/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/chat.c')
-rw-r--r--src/map/chat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/chat.c b/src/map/chat.c
index e5e9646d1..051d9609a 100644
--- a/src/map/chat.c
+++ b/src/map/chat.c
@@ -82,6 +82,11 @@ int chat_joinchat(struct map_session_data *sd,int chatid,char* pass)
clif_joinchatfail(sd,1);
return 0;
}
+ if(chatid == sd->chatID) //Double Chat fix by Alex14, thx CHaNGeTe
+ {
+ clif_joinchatfail(sd,1);
+ return 0;
+ }
cd->usersd[cd->users] = sd;
cd->users++;