Update ChatChannel.cpp
This commit is contained in:
parent
c22bff197c
commit
9da4516dde
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue