aboutsummaryrefslogtreecommitdiff
path: root/src/game/Channel.cpp
diff options
context:
space:
mode:
authorp0wer <none@none>2010-02-23 21:59:36 -0600
committerp0wer <none@none>2010-02-23 21:59:36 -0600
commitb598127ebf69e7c7f7d48ead1d6ac9105db7d4d6 (patch)
tree8d2e1a3bc5a7b2dc4cb3a44754bfeb705d5ca527 /src/game/Channel.cpp
parentee40f67b6fac8e7118a6239914573fe398db2f7b (diff)
Compile fix for past commits. Seems I'm a bit rusty. :P
--HG-- branch : trunk
Diffstat (limited to 'src/game/Channel.cpp')
-rw-r--r--src/game/Channel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Channel.cpp b/src/game/Channel.cpp
index 5b0ce8ffa04..3ce71bb1109 100644
--- a/src/game/Channel.cpp
+++ b/src/game/Channel.cpp
@@ -19,6 +19,7 @@
*/
#include "Channel.h"
+#include "Chat.h"
#include "ObjectMgr.h"
#include "SocialMgr.h"
#include "World.h"
@@ -367,11 +368,13 @@ void Channel::Password(uint64 p, const char *pass)
if(plr)
sec = plr->GetSession()->GetSecurity();
+ ChatHandler chat(plr);
+
if(!m_public && sec <= SEC_MODERATOR)
{
plName = plr->GetName();
normalizePlayerName(plName);
- PSendSysMessage(LANG_CHANNEL_NOT_PUBLIC, plName.c_str());
+ chat.PSendSysMessage(LANG_CHANNEL_NOT_PUBLIC, plName.c_str());
return;
}