summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-08 18:06:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-08 18:06:17 +0300
commitdd77c2e6a62ba20b0887f2b3ea39b8f748f44ec7 (patch)
treef709b4521b764b97c60acf619f6d44c72eb309af /src
parent6303e605ef23003aabace85cde3f04574f1fb05c (diff)
downloadmv-dd77c2e6a62ba20b0887f2b3ea39b8f748f44ec7.tar.gz
mv-dd77c2e6a62ba20b0887f2b3ea39b8f748f44ec7.tar.bz2
mv-dd77c2e6a62ba20b0887f2b3ea39b8f748f44ec7.tar.xz
mv-dd77c2e6a62ba20b0887f2b3ea39b8f748f44ec7.zip
Add server feature haveNpcWhispers.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/serverfeatures.cpp5
-rw-r--r--src/net/eathena/serverfeatures.h2
-rw-r--r--src/net/serverfeatures.h2
-rw-r--r--src/net/tmwa/serverfeatures.cpp5
-rw-r--r--src/net/tmwa/serverfeatures.h2
5 files changed, 16 insertions, 0 deletions
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