Compile fix for past commits. Seems I'm a bit rusty. :P

--HG--
branch : trunk
This commit is contained in:
p0wer
2010-02-23 21:59:36 -06:00
parent ee40f67b6f
commit b598127ebf
+4 -1
View File
@@ -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;
}