summaryrefslogtreecommitdiff
path: root/src/commandhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-08 21:50:36 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-08 21:50:36 +0300
commit4a4d6bd39b88933f5db4b632b28e1444062ad25a (patch)
tree1035ec196f0c1c09c4db8ac519357148c747fa09 /src/commandhandler.h
parent3e7208efe20dfdb5578718c2762ee196f73f8168 (diff)
downloadmv-4a4d6bd39b88933f5db4b632b28e1444062ad25a.tar.gz
mv-4a4d6bd39b88933f5db4b632b28e1444062ad25a.tar.bz2
mv-4a4d6bd39b88933f5db4b632b28e1444062ad25a.tar.xz
mv-4a4d6bd39b88933f5db4b632b28e1444062ad25a.zip
Add variables for any chat text/commands.
<PLAYER> - target or nearest player nick. <MONSTER> - target or nearest monster name. <PEOPLE> - comma separated list of visible players (except self). <PARTY> - all party members (except self). Example usage: type in chat: hello <PEOPLE>.
Diffstat (limited to 'src/commandhandler.h')
-rw-r--r--src/commandhandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commandhandler.h b/src/commandhandler.h
index f8b44e04f..b97b191ff 100644
--- a/src/commandhandler.h
+++ b/src/commandhandler.h
@@ -59,6 +59,8 @@ class CommandHandler
void handleCommands(const std::string &command,
ChatTab *tab = localChatTab);
+ void replaceVars(std::string &str);
+
static char parseBoolean(const std::string &value);
protected: