aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-07-16 16:32:37 -0300
committerariel- <ariel-@users.noreply.github.com>2016-07-16 16:33:02 -0300
commit7c714179930c8c369f124d8d1404656fff0a1199 (patch)
treedb456a23dddcd35f2e2140313c2ab4ff55ea4d08 /src
parentb4b3c10c69f73a0fd1e8efe4fd8684676f33948d (diff)
Core/Channel: restore accidentally deleted line, fixes channels not honoring ownership setting
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Chat/Channels/Channel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Chat/Channels/Channel.cpp b/src/server/game/Chat/Channels/Channel.cpp
index 5a49b691d41..a34f0f4d9a2 100644
--- a/src/server/game/Chat/Channels/Channel.cpp
+++ b/src/server/game/Chat/Channels/Channel.cpp
@@ -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);