diff options
author | Peter Powell <petpow@saberuk.com> | 2019-05-14 00:30:56 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-05-14 01:12:13 +0100 |
commit | 61b13aa89ecb38a24faadb0bdb085a8bb3c56d22 (patch) | |
tree | ea483f85917f13b6db1b4f9ec2e847c78a214576 /src/modules/m_spanningtree/compat.cpp | |
parent | b9e732f73b0cb8e1fde9181a8b5502927feaf339 (diff) |
Add an enumeration for known protocol versions.
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
-rw-r--r-- | src/modules/m_spanningtree/compat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 8d24cfe90..fc9700740 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -35,7 +35,7 @@ void TreeSocket::WriteLine(const std::string& original_line) { if (LinkState == CONNECTED) { - if (proto_version != ProtocolVersion) + if (proto_version != PROTO_NEWEST) { std::string line = original_line; std::string::size_type a = line.find(' '); @@ -48,7 +48,7 @@ void TreeSocket::WriteLine(const std::string& original_line) std::string::size_type b = line.find(' ', a + 1); std::string command(line, a + 1, b-a-1); // now try to find a translation entry - if (proto_version < 1205) + if (proto_version < PROTO_INSPIRCD_30) { if (command == "IJOIN") { |