summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CRSMConfig.hpp2
-rw-r--r--src/crsm.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/CRSMConfig.hpp b/src/CRSMConfig.hpp
index fb06f31..5ecb158 100644
--- a/src/CRSMConfig.hpp
+++ b/src/CRSMConfig.hpp
@@ -72,6 +72,7 @@ public:
String QuitMessage = "Dedicated Clonk server powered by CRSM";
Integer ReconnectDelay = 10;
String ScenListMessage = "A list of available scenarios is available over DCC, ingame or in a lobby.";
+ String CtcpVersion = "Dedicated Clonk server powered by CRSM (unversioned)";
Map(String, String) Moderators;
} IRC;
@@ -163,6 +164,7 @@ public:
ConfigVal(IRC.QuitMessage),
ConfigVal(IRC.ReconnectDelay),
ConfigVal(IRC.ScenListMessage),
+ ConfigVal(IRC.CtcpVersion),
ConfigVal(IRC.Moderators),
diff --git a/src/crsm.cpp b/src/crsm.cpp
index c0d3d45..19dc775 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -1806,6 +1806,10 @@ void CRSM::applyConfig()
connection->sendCommand(IrcCommand::createJoin(Config.IRC.IngameChannel));
}
}
+ if(connection != nullptr)
+ {
+ connection->setCtcpReplies({{"VERSION", Config.IRC.CtcpVersion}});
+ }
}
else
{