From 563bb83f0e5380b6be9819456246f0f2901f186c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Oct 2014 18:54:54 +0300 Subject: Rename server feature haveChatChannels into haveSpecialChatChannels. --- src/net/eathena/serverfeatures.cpp | 2 +- src/net/eathena/serverfeatures.h | 2 +- src/net/serverfeatures.h | 2 +- src/net/tmwa/chathandler.cpp | 2 +- src/net/tmwa/serverfeatures.cpp | 2 +- src/net/tmwa/serverfeatures.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index f7bd1fe09..af25acc62 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -92,7 +92,7 @@ bool ServerFeatures::haveLookSelection() const return false; } -bool ServerFeatures::haveChatChannels() const +bool ServerFeatures::haveSpecialChatChannels() const { return false; } diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 813e2e53e..a259a5df6 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -58,7 +58,7 @@ class ServerFeatures final : public Net::ServerFeatures bool haveLookSelection() const override final; - bool haveChatChannels() const override final; + bool haveSpecialChatChannels() const override final; bool haveServerIgnore() const override final; diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index c16d11f99..549ff7aa4 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -55,7 +55,7 @@ class ServerFeatures notfinal virtual bool haveLookSelection() const = 0; - virtual bool haveChatChannels() const = 0; + virtual bool haveSpecialChatChannels() const = 0; virtual bool haveServerIgnore() const = 0; diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index fde774670..051443318 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -126,7 +126,7 @@ void ChatHandler::talk(const std::string &restrict text, const std::string mes = std::string(localPlayer->getName()).append( " : ").append(text); - if (serverFeatures->haveChatChannels() && channel.size() == 3) + if (serverFeatures->haveSpecialChatChannels() && channel.size() == 3) { createOutPacket(CMSG_CHAT_MESSAGE2); // Added + 1 in order to let eAthena parse admin commands correctly diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index c94c093a4..b1556fbdf 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -94,7 +94,7 @@ bool ServerFeatures::haveLookSelection() const return serverVersion >= 9; } -bool ServerFeatures::haveChatChannels() const +bool ServerFeatures::haveSpecialChatChannels() const { return serverVersion >= 8; } diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 97c42d1e4..8dc52bc15 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -58,7 +58,7 @@ class ServerFeatures final : public Net::ServerFeatures bool haveLookSelection() const override final; - bool haveChatChannels() const override final; + bool haveSpecialChatChannels() const override final; bool haveServerIgnore() const override final; -- cgit v1.2.3-70-g09d2