From 261edddd92ec02c1d278213e730aa30a1fea71d0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 May 2013 20:39:30 +0300 Subject: Remove static list with chat commands for autocomplete. --- src/gui/chatwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui') diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 0e043ea71..5d0c76b91 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -24,6 +24,7 @@ #include "actorspritemanager.h" #include "client.h" +#include "commandhandler.h" #include "commands.h" #include "configuration.h" #include "game.h" @@ -322,6 +323,7 @@ void ChatWindow::loadCommandsFile(const std::string &name) void ChatWindow::fillCommands() { loadCommandsFile("chatcommands.txt"); + CommandHandler::addChatCommands(mCommands); } void ChatWindow::loadGMCommands() -- cgit v1.2.3-70-g09d2