diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-14 17:27:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-14 17:27:52 +0300 |
commit | 0381a0de69cc21c8886fb0a68cda450d3135d55a (patch) | |
tree | 7c9883d4043b925b9148715664b621876c680d20 /src/net/eathena/chathandler.cpp | |
parent | ecac984465f2a9f51940515abdf7552e5c6341a1 (diff) | |
download | plus-0381a0de69cc21c8886fb0a68cda450d3135d55a.tar.gz plus-0381a0de69cc21c8886fb0a68cda450d3135d55a.tar.bz2 plus-0381a0de69cc21c8886fb0a68cda450d3135d55a.tar.xz plus-0381a0de69cc21c8886fb0a68cda450d3135d55a.zip |
For trade tab use channel to send messages.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 3def53afd..456bda0e5 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -194,7 +194,10 @@ void ChatHandler::privateMessage(const std::string &restrict recipient, void ChatHandler::channelMessage(const std::string &restrict channel, const std::string &restrict text) { - privateMessage(channel, text); + if (channel == TRADE_CHANNEL) + talk("\302\202" + text, GENERAL_CHANNEL); + else + privateMessage(channel, text); } void ChatHandler::who() const |