summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-25 17:43:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-25 17:48:01 +0300
commitc1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15 (patch)
treebf2b183127384c9b0b77719c1176db51f917f6f4 /src/net/tmwa/chathandler.cpp
parentf2a2fe38f1185cbe6acb978b37190aaae76f1b62 (diff)
downloadmv-c1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15.tar.gz
mv-c1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15.tar.bz2
mv-c1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15.tar.xz
mv-c1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15.zip
Replace direct gm commands to gm command functions.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index da25c83cf..514b339c8 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -33,6 +33,7 @@
#include "net/tmwa/messageout.h"
#include "net/tmwa/protocolout.h"
+#include "utils/gmfunctions.h"
#include "utils/stringutils.h"
#include "debug.h"
@@ -86,7 +87,7 @@ void ChatHandler::channelMessage(const std::string &restrict channel,
if (channel == TRADE_CHANNEL)
talk("\302\202" + text, GENERAL_CHANNEL);
else if (channel == GM_CHANNEL)
- talk("@wgm " + text, GENERAL_CHANNEL);
+ Gm::runCommand("wgm", text);
}
void ChatHandler::who() const