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