From 3ecde465534c93315a1f88430129e8400f4d9fe2 Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 24 Oct 2007 12:14:18 +0000 Subject: * Cleaned up some messy guild code (more to come) * Cleaned up the mail code, no more pointless dynamic allocation * Added upgrade_svn11548.sql to convert the mail table to new format * Updated vs7 and vs6 project files * Increased the max. send buffer size to 5M since 1M is not enough * Please complain if something stops working ^^; git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11571 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/chat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map/chat.c') diff --git a/src/map/chat.c b/src/map/chat.c index 1a0730b51..67a4dbaee 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -151,15 +151,15 @@ int chat_leavechat(struct map_session_data* sd, bool kicked) return -1; } - leavechar = i; - clif_leavechat(cd, sd, kicked); + pc_setchatid(sd, 0); + cd->users--; + + leavechar = i; for( i = leavechar; i < cd->users; i++ ) cd->usersd[i] = cd->usersd[i+1]; - pc_setchatid(sd, 0); - cd->users--; if( cd->users == 0 && cd->owner->type == BL_PC ) { // Delete empty chatroom -- cgit v1.2.3-60-g2f50