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
-4
View File
@@ -2617,12 +2617,8 @@ namespace Game.Entities
// delete channel if empty
ChannelManager cMgr = ChannelManager.ForTeam(GetTeam());
if (cMgr != null)
{
if (ch.IsConstant())
cMgr.LeftChannel(ch.GetChannelId(), ch.GetZoneEntry());
else
cMgr.LeftChannel(ch.GetName());
}
}
Log.outDebug(LogFilter.ChatSystem, "Player {0}: channels cleaned up!", GetName());
}