Core/Channels: Fix a bug that would cause channel settings to disappear in certain settings. Fix a bug that would cause channels to not be saved on .server shutdown without delay.

Port From (https://github.com/TrinityCore/TrinityCore/commit/f434241305089942e7df5579e81137624c3ae0ef)
This commit is contained in:
hondacrx
2022-01-04 17:51:57 -05:00
parent 66df29db11
commit 964542023c
4 changed files with 2 additions and 25 deletions
@@ -193,18 +193,6 @@ namespace Game.Chat
return result;
}
public void LeftChannel(string name)
{
string channelName = name.ToLower();
var channel = _customChannels.LookupByKey(channelName);
if (channel == null)
return;
if (channel.GetNumPlayers() == 0)
_customChannels.Remove(channelName);
}
public void LeftChannel(uint channelId, AreaTableRecord zoneEntry)
{
var guid = CreateBuiltinChannelGuid(channelId, zoneEntry);