Explorar o código

Update ChatChannel.cpp

Image %!s(int64=3) %!d(string=hai) anos
pai
achega
9da4516dde
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      EQ2/source/WorldServer/Chat/ChatChannel.cpp

+ 2 - 0
EQ2/source/WorldServer/Chat/ChatChannel.cpp

@@ -104,6 +104,8 @@ bool ChatChannel::LeaveChannel(Client *client) {
 		for (itr = clients.begin(); itr != clients.end(); itr++) {
 			if ((to_client = zone_list.GetClientByCharID(*itr)) == NULL)
 				continue;
+			if (to_client == client) // don't need to send to self.
+				continue;
 
 			if ((packet_struct = configReader.getStruct("WS_ChatChannelUpdate", to_client->GetVersion())) == NULL)
 				continue;