summaryrefslogtreecommitdiff
path: root/src/commands.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-08 02:24:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-08 02:24:24 +0300
commitdcd0d2e4d8a827d06a10344855d8d044bd26630d (patch)
treed80a5c0f9e9ef9025b42ed7a619fbf21f4a867d7 /src/commands.h
parent466b8491acd56454d82ab70d3fcbc06206b18e6a (diff)
downloadplus-dcd0d2e4d8a827d06a10344855d8d044bd26630d.tar.gz
plus-dcd0d2e4d8a827d06a10344855d8d044bd26630d.tar.bz2
plus-dcd0d2e4d8a827d06a10344855d8d044bd26630d.tar.xz
plus-dcd0d2e4d8a827d06a10344855d8d044bd26630d.zip
Add chat command for execute external programs.
New chat command: /execute NAME[ PAR] NAME - program name PAR - parameter
Diffstat (limited to 'src/commands.h')
-rw-r--r--src/commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands.h b/src/commands.h
index b0e3b6951..7d1cf80e1 100644
--- a/src/commands.h
+++ b/src/commands.h
@@ -113,6 +113,7 @@ namespace Commands
decHandler(dumpTests);
decHandler(dumpOGL);
decHandler(cacheInfo);
+ decHandler(execute);
void replaceVars(std::string &str);
}
@@ -190,6 +191,7 @@ static const CommandInfo commands[] =
{"dumpogl", &Commands::dumpOGL},
{"url", &Commands::url},
{"open", &Commands::open},
+ {"execute", &Commands::execute},
{"hack", &Commands::hack}
};