diff options
| author | 2021-08-28 23:47:38 +0100 | |
|---|---|---|
| committer | 2021-08-28 23:47:51 +0100 | |
| commit | 932866d5e2535c0ebd760a33189d5c0a33c6e77a (patch) | |
| tree | ae6006ed79b6f44afeab482110081c8af60edf08 /src/modules/m_spanningtree/compat.cpp | |
| parent | Forward SQUERY to services instead of downgrading it to PRIVMSG. (diff) | |
| download | inspircd++-932866d5e2535c0ebd760a33189d5c0a33c6e77a.tar.gz inspircd++-932866d5e2535c0ebd760a33189d5c0a33c6e77a.tar.bz2 inspircd++-932866d5e2535c0ebd760a33189d5c0a33c6e77a.zip | |
Make the protocol version enum entries slightly less verbose.
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 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"); } } |
