From dd77c2e6a62ba20b0887f2b3ea39b8f748f44ec7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Dec 2014 18:06:17 +0300 Subject: Add server feature haveNpcWhispers. --- 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(+) diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 73aac6ea7..6b83835cd 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -175,4 +175,9 @@ bool ServerFeatures::haveJoinChannel() const return serverVersion >= 3; } +bool ServerFeatures::haveNpcWhispers() const +{ + return true; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index adf8be2a1..b1b6980a9 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -89,6 +89,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveNpcGender() const override final; bool haveJoinChannel() const override final; + + bool haveNpcWhispers() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index ab9a79cd9..f1a401721 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -86,6 +86,8 @@ class ServerFeatures notfinal virtual bool haveNpcGender() const = 0; virtual bool haveJoinChannel() const = 0; + + virtual bool haveNpcWhispers() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 0f107e314..da971e17c 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -174,4 +174,9 @@ bool ServerFeatures::haveJoinChannel() const return false; } +bool ServerFeatures::haveNpcWhispers() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index c00bd478f..46ebbb480 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -89,6 +89,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveNpcGender() const override final; bool haveJoinChannel() const override final; + + bool haveNpcWhispers() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2