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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user