summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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