summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-14 18:33:59 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-14 18:33:59 +0300
commit0b861120e4496f64c8014c7f7b3d0a8938cc7d51 (patch)
tree095bc7b9b9d50fc56b1fd3b2b19696d17780578e /src/net/tmwa/chathandler.cpp
parentf86221f5fe1bc54b3e643169d510b01f991e5f04 (diff)
downloadmanaverse-0b861120e4496f64c8014c7f7b3d0a8938cc7d51.tar.gz
manaverse-0b861120e4496f64c8014c7f7b3d0a8938cc7d51.tar.bz2
manaverse-0b861120e4496f64c8014c7f7b3d0a8938cc7d51.tar.xz
manaverse-0b861120e4496f64c8014c7f7b3d0a8938cc7d51.zip
Add support for #gm channel for gm tab.
In legacy servers it will use @wgm as before.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index a48aa5426..866a0be63 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -170,6 +170,8 @@ void ChatHandler::channelMessage(const std::string &restrict channel,
{
if (channel == TRADE_CHANNEL)
talk("\302\202" + text, GENERAL_CHANNEL);
+ else if (channel == GM_CHANNEL)
+ talk("@wgm " + text, GENERAL_CHANNEL);
}
void ChatHandler::who() const