From 932866d5e2535c0ebd760a33189d5c0a33c6e77a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 28 Aug 2021 23:47:38 +0100 Subject: Make the protocol version enum entries slightly less verbose. --- src/modules/m_spanningtree/compat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree/compat.cpp') diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 1efe86316..85b7ec007 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -45,11 +45,11 @@ void TreeSocket::WriteLine(const std::string& original_line) cmdend = line.size(); std::string command(line, cmdstart + 1, cmdend - cmdstart - 1); - if (proto_version == PROTO_INSPIRCD_30) + if (proto_version == PROTO_INSPIRCD_3) { if (irc::equals(command, "SQUERY")) { - // SQUERY was introduced in PROTO_INSPIRCD_40_A1; convert to PRIVMSG. + // SQUERY was introduced in PROTO_INSPIRCD_4; convert to PRIVMSG. line.replace(cmdstart + 1, cmdend - cmdstart - 1, "PRIVMSG"); } } -- cgit v1.3.1-10-gc9f91