diff options
author | megamage <none@none> | 2008-11-10 17:19:35 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-10 17:19:35 -0600 |
commit | 73d1b07a91fea4f9422f532183c08f2ef679aaa8 (patch) | |
tree | 3f8ba31a87c372e92c1d7c085ee54b5d7a502705 /src/game/Channel.cpp | |
parent | 99044f7005cdf050666e67ca564fd6c584ad6c40 (diff) |
[svn] Fix some typos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Channel.cpp')
-rw-r--r-- | src/game/Channel.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/game/Channel.cpp b/src/game/Channel.cpp index 154045b7674..87d669c089a 100644 --- a/src/game/Channel.cpp +++ b/src/game/Channel.cpp @@ -10,12 +10,12 @@ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "Channel.h" @@ -115,6 +115,13 @@ void Channel::Join(uint64 p, const char *pass) SendToOne(&data, p); JoinNotify(p); + + // if no owner first logged will become + if(!IsConstant() && !m_ownerGUID) + { + SetOwner(p, (players.size() > 1 ? true : false)); + players[p].SetModerator(true); + } } void Channel::Leave(uint64 p, bool send) |