diff options
| author | 2024-05-18 15:45:45 +0100 | |
|---|---|---|
| committer | 2024-05-18 15:46:02 +0100 | |
| commit | f580b42f2a4c7f2be6213d66364d97a2b4d0b3fa (patch) | |
| tree | c6b0a14a9081d412dd83ac4fe0a09676ba212e92 /src/modules | |
| parent | Make passwords for oper accounts optional. (diff) | |
Resend the customversion when it changes.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index dab1ec707..74869f524 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -700,6 +700,13 @@ void ModuleSpanningTree::ReadConfig(ConfigStatus& status) CommandSInfo::Builder(Utils->TreeRoot, "desc", newdesc).Broadcast(); } + const auto& newcustomversion = ServerInstance->Config->CustomVersion; + if (newcustomversion != Utils->TreeRoot->customversion) + { + Utils->TreeRoot->customversion = newcustomversion; + CommandSInfo::Builder(Utils->TreeRoot, "customversion", newcustomversion).Broadcast(); + } + // Re-read config stuff try { |
