diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-12-08 21:50:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-12-08 21:50:36 +0300 |
commit | 4a4d6bd39b88933f5db4b632b28e1444062ad25a (patch) | |
tree | 1035ec196f0c1c09c4db8ac519357148c747fa09 /src/commandhandler.h | |
parent | 3e7208efe20dfdb5578718c2762ee196f73f8168 (diff) | |
download | plus-4a4d6bd39b88933f5db4b632b28e1444062ad25a.tar.gz plus-4a4d6bd39b88933f5db4b632b28e1444062ad25a.tar.bz2 plus-4a4d6bd39b88933f5db4b632b28e1444062ad25a.tar.xz plus-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.h | 2 |
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: |