summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.cpp
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/gui/chatwindow.cpp
parent3e7208efe20dfdb5578718c2762ee196f73f8168 (diff)
downloadmanaplus-4a4d6bd39b88933f5db4b632b28e1444062ad25a.tar.gz
manaplus-4a4d6bd39b88933f5db4b632b28e1444062ad25a.tar.bz2
manaplus-4a4d6bd39b88933f5db4b632b28e1444062ad25a.tar.xz
manaplus-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/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 33c24e9c7..84d61cf65 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 "configuration.h"
#include "guild.h"
#include "keyboardconfig.h"
@@ -305,6 +306,10 @@ void ChatWindow::fillCommands()
mCommands.push_back("/serverunignoreall");
mCommands.push_back("/dumpg");
mCommands.push_back("/pseudoaway ");
+ mCommands.push_back("<PLAYER>");
+ mCommands.push_back("<MONSTER>");
+ mCommands.push_back("<PEOPLE>");
+ mCommands.push_back("<PARTY>");
}
void ChatWindow::loadGMCommands()