summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/override_map.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-12-19 18:41:55 +0000
committerGitHub <noreply@github.com>2017-12-19 18:41:55 +0000
commit4f3aaaef9f8b111452ffa4498aaefeae3fcb6675 (patch)
treed2f9c363afd6de96d564ee6d59205c5ec9b238cd /src/modules/m_spanningtree/override_map.cpp
parentc4e7b532055909e303f6ddb1a6e6f2dd073fcf3e (diff)
parent6d4b4f7bf707c8b8270054120e6c7b6f1f2b9834 (diff)
Merge pull request #1442 from B00mX0r/master+map_version
Show server versions in /MAP for opers
Diffstat (limited to 'src/modules/m_spanningtree/override_map.cpp')
-rw-r--r--src/modules/m_spanningtree/override_map.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/override_map.cpp b/src/modules/m_spanningtree/override_map.cpp
index a22fa48ac..d1a00ed84 100644
--- a/src/modules/m_spanningtree/override_map.cpp
+++ b/src/modules/m_spanningtree/override_map.cpp
@@ -76,7 +76,13 @@ static std::vector<std::string> GetMap(User* user, TreeServer* current, unsigned
std::string buffer = current->GetName();
if (user->IsOper())
{
- buffer += " (" + current->GetID() + ")";
+ buffer += " (" + current->GetID();
+
+ const std::string& cur_vers = current->GetRawVersion();
+ if (!cur_vers.empty())
+ buffer += " " + cur_vers;
+
+ buffer += ")";
}
// Pad with spaces until its at max len, max_len must always be >= my names length