summaryrefslogtreecommitdiff
path: root/src/actions/commands.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/actions/commands.cpp
parentf2a2fe38f1185cbe6acb978b37190aaae76f1b62 (diff)
downloadmanaplus-c1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15.tar.gz
manaplus-c1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15.tar.bz2
manaplus-c1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15.tar.xz
manaplus-c1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15.zip
Replace direct gm commands to gm command functions.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index cdb1fa69c..ebb472130 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -69,6 +69,7 @@
#include "utils/chatutils.h"
#include "utils/gettext.h"
+#include "utils/gmfunctions.h"
#include "utils/process.h"
#include "debug.h"
@@ -805,7 +806,7 @@ impHandler(gm)
{
if (chatHandler)
{
- chatHandler->talk("@wgm " + event.args, GENERAL_CHANNEL);
+ Gm::runCommand("wgm", event.args);
return true;
}
return false;