From c1c666d37d924f4ef9c544b7ce25fc3ef7b6dd15 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Feb 2016 17:43:16 +0300 Subject: Replace direct gm commands to gm command functions. --- src/actions/commands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/actions') 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; -- cgit v1.2.3-60-g2f50