summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-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 af25acc62..bb778037e 100644
--- a/src/net/eathena/serverfeatures.cpp
+++ b/src/net/eathena/serverfeatures.cpp
@@ -97,6 +97,11 @@ bool ServerFeatures::haveSpecialChatChannels() const
return false;
}
+bool ServerFeatures::haveChatChannels() const
+{
+ return true;
+}
+
bool ServerFeatures::haveServerIgnore() const
{
return true;
diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h
index a259a5df6..e84aca256 100644
--- a/src/net/eathena/serverfeatures.h
+++ b/src/net/eathena/serverfeatures.h
@@ -60,6 +60,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveSpecialChatChannels() const override final;
+ bool haveChatChannels() const override final;
+
bool haveServerIgnore() const override final;
bool haveMove3() const override final;
diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h
index 549ff7aa4..99c6a872e 100644
--- a/src/net/serverfeatures.h
+++ b/src/net/serverfeatures.h
@@ -57,6 +57,8 @@ class ServerFeatures notfinal
virtual bool haveSpecialChatChannels() const = 0;
+ virtual bool haveChatChannels() const = 0;
+
virtual bool haveServerIgnore() const = 0;
virtual bool haveMove3() const = 0;
diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp
index b1556fbdf..3ab0dc600 100644
--- a/src/net/tmwa/serverfeatures.cpp
+++ b/src/net/tmwa/serverfeatures.cpp
@@ -99,6 +99,11 @@ bool ServerFeatures::haveSpecialChatChannels() const
return serverVersion >= 8;
}
+bool ServerFeatures::haveChatChannels() const
+{
+ return false;
+}
+
bool ServerFeatures::haveServerIgnore() const
{
return tmwServerVersion == 0;
diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h
index 8dc52bc15..0194173b7 100644
--- a/src/net/tmwa/serverfeatures.h
+++ b/src/net/tmwa/serverfeatures.h
@@ -60,6 +60,8 @@ class ServerFeatures final : public Net::ServerFeatures
bool haveSpecialChatChannels() const override final;
+ bool haveChatChannels() const override final;
+
bool haveServerIgnore() const override final;
bool haveMove3() const override final;