diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 18:23:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 18:23:33 +0300 |
commit | a143251ee20a65b43c6d85d9f15bddf06dbc8804 (patch) | |
tree | 6c0168d5fa696b29f78d275b4524fc11e43be2ed /src/net/tmwa/chathandler.cpp | |
parent | b4a69fc693dcac28c84d9eee96f92d2bc56331ea (diff) | |
download | mv-a143251ee20a65b43c6d85d9f15bddf06dbc8804.tar.gz mv-a143251ee20a65b43c6d85d9f15bddf06dbc8804.tar.bz2 mv-a143251ee20a65b43c6d85d9f15bddf06dbc8804.tar.xz mv-a143251ee20a65b43c6d85d9f15bddf06dbc8804.zip |
Add server feature haveServerIgnore.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index c979536ae..46e2fca13 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -238,7 +238,7 @@ void ChatHandler::processRaw(MessageOut &restrict outMsg, void ChatHandler::ignoreAll() const { - if (tmwServerVersion > 0) + if (!Net::getServerFeatures()->haveServerIgnore()) return; MessageOut outMsg(CMSG_IGNORE_ALL); outMsg.writeInt8(0, "flag"); @@ -246,7 +246,7 @@ void ChatHandler::ignoreAll() const void ChatHandler::unIgnoreAll() const { - if (tmwServerVersion > 0) + if (!Net::getServerFeatures()->haveServerIgnore()) return; MessageOut outMsg(CMSG_IGNORE_ALL); outMsg.writeInt8(1, "flag"); |