This commit is contained in:
fourtf
2018-01-05 02:05:59 +01:00
parent 43568556be
commit 947589358b
3 changed files with 57 additions and 5 deletions
+5 -1
View File
@@ -5,6 +5,8 @@
#include <mutex>
namespace chatterino {
class Channel;
namespace singletons {
//
@@ -18,7 +20,7 @@ class CommandManager
public:
static CommandManager &getInstance();
QString execCommand(QString text, bool dryRun);
QString execCommand(const QString &text, std::shared_ptr<Channel> channel, bool dryRun);
void loadCommands();
void saveCommands();
@@ -38,6 +40,8 @@ private:
QMap<QString, Command> commands;
std::mutex mutex;
QStringList commandsStringList;
QString execCustomCommand(const QStringList &words, const Command &command);
};
}
}