From e83cd5e5e4a5faae81f3731134a960820455af84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 Apr 2015 15:24:42 +0300 Subject: Add server feature haveMute. --- src/net/eathena/serverfeatures.cpp | 5 +++++ src/net/eathena/serverfeatures.h | 2 ++ src/net/serverfeatures.h | 2 ++ src/net/tmwa/serverfeatures.cpp | 5 +++++ src/net/tmwa/serverfeatures.h | 2 ++ 5 files changed, 16 insertions(+) (limited to 'src') diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index c4e53dd42..caac3607a 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -225,4 +225,9 @@ bool ServerFeatures::haveExpPacket() const return true; } +bool ServerFeatures::haveMute() const +{ + return true; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index a60c67ee5..5b7ea0b6b 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -109,6 +109,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveServerWarpNames() const override final; bool haveExpPacket() const override final; + + bool haveMute() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 1ae9a2933..ac67e59d9 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -106,6 +106,8 @@ class ServerFeatures notfinal virtual bool haveServerWarpNames() const = 0; virtual bool haveExpPacket() const = 0; + + virtual bool haveMute() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 4c57c7d1e..47afbac08 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -224,4 +224,9 @@ bool ServerFeatures::haveExpPacket() const return false; } +bool ServerFeatures::haveMute() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index f30cdbd20..cc7709bd7 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -109,6 +109,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveServerWarpNames() const override final; bool haveExpPacket() const override final; + + bool haveMute() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2