Core/Channel: restore accidentally deleted line, fixes channels not honoring ownership setting

This commit is contained in:
ariel-
2016-07-16 16:32:37 -03:00
parent b4b3c10c69
commit 7c71417993

View File

@@ -213,6 +213,7 @@ void Channel::JoinChannel(Player* player, std::string const& pass)
UpdateChannelUseageInDB();
// If the channel has no owner yet and ownership is allowed, set the new owner.
if (!_ownerGuid && _ownershipEnabled)
{
SetOwner(guid, _playersStore.size() > 1);
pinfo.SetModerator(true);