From 615445b73ce4378a9d62e64d9f90cefdb26979c7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 7 Mar 2016 00:25:31 +0300 Subject: Add server feature haveMail. --- 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/net') diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 1bdbc73b8..4c87536b0 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -275,4 +275,9 @@ bool ServerFeatures::haveMultyStatusUp() const return true; } +bool ServerFeatures::haveMail() const +{ + return true; +} + } // namespace EAthena diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 3947de160..86e14ffc3 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -129,6 +129,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveSecureTrades() const override final; bool haveMultyStatusUp() const override final; + + bool haveMail() const override final; }; } // namespace EAthena diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index 84bf21453..fbba2988a 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -126,6 +126,8 @@ class ServerFeatures notfinal virtual bool haveSecureTrades() const = 0; virtual bool haveMultyStatusUp() const = 0; + + virtual bool haveMail() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 0137e26a4..22ca73f2b 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -273,4 +273,9 @@ bool ServerFeatures::haveMultyStatusUp() const return false; } +bool ServerFeatures::haveMail() const +{ + return false; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index bf487332f..f4031a7ea 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -129,6 +129,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveSecureTrades() const override final A_CONST; bool haveMultyStatusUp() const override final A_CONST; + + bool haveMail() const override final A_CONST; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2