* Various functions to broadcast output to GMs only - Patch by Machiavelli

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2008-12-22 21:56:16 +01:00
parent 5313601ea6
commit 5ca3aacaaf
7 changed files with 182 additions and 59 deletions

View File

@@ -139,6 +139,16 @@ bool ChatHandler::HandleAnnounceCommand(const char* args)
return true;
}
// announce to logged in GMs
bool ChatHandler::HandleGMAnnounceCommand(const char* args)
{
if(!*args)
return false;
sWorld.SendGMText(LANG_GM_BROADCAST,args);
return true;
}
//notification player at the screen
bool ChatHandler::HandleNotifyCommand(const char* args)
{
@@ -155,6 +165,22 @@ bool ChatHandler::HandleNotifyCommand(const char* args)
return true;
}
//notification GM at the screen
bool ChatHandler::HandleGMNotifyCommand(const char* args)
{
if(!*args)
return false;
std::string str = GetTrinityString(LANG_GM_NOTIFY);
str += args;
WorldPacket data(SMSG_NOTIFICATION, (str.size()+1));
data << str;
sWorld.SendGlobalGMMessage(&data);
return true;
}
//Enable\Dissable GM Mode
bool ChatHandler::HandleGMmodeCommand(const char* args)
{