aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level1.cpp
diff options
context:
space:
mode:
authorBlaymoira <none@none>2008-12-22 21:56:16 +0100
committerBlaymoira <none@none>2008-12-22 21:56:16 +0100
commit5ca3aacaaf1919863ec1c63f7ee8370f41c5dcbb (patch)
tree0c8ca7560e528ca0b517f5363381e4196eea15a1 /src/game/Level1.cpp
parent5313601ea60bc00eaf484dd642230b6182460433 (diff)
* Various functions to broadcast output to GMs only - Patch by Machiavelli
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level1.cpp')
-rw-r--r--src/game/Level1.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp
index 002b7c9aa3a..e1af5f0b08e 100644
--- a/src/game/Level1.cpp
+++ b/src/game/Level1.cpp
@@ -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)
{