aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/compat.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-09-02 11:44:47 +0100
committerGravatar Sadie Powell2021-09-02 11:45:23 +0100
commit3629e99c15a6ee5acd7d6015bc0b8fad1285b671 (patch)
tree7fa5373c18589f2d27a3939e78859234dc47ba05 /src/modules/m_spanningtree/compat.cpp
parentRelease v4.0.0 alpha 4. (diff)
Add the FRHOST command to allow changing a remote user's real host.
Closes #1803.
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
-rw-r--r--src/modules/m_spanningtree/compat.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp
index 85b7ec007..7e3c6fcd5 100644
--- a/src/modules/m_spanningtree/compat.cpp
+++ b/src/modules/m_spanningtree/compat.cpp
@@ -47,7 +47,12 @@ void TreeSocket::WriteLine(const std::string& original_line)
std::string command(line, cmdstart + 1, cmdend - cmdstart - 1);
if (proto_version == PROTO_INSPIRCD_3)
{
- if (irc::equals(command, "SQUERY"))
+ if (irc::equals(command, "FRHOST"))
+ {
+ // FRHOST was introduced in PROTO_INSPIRCD_4; drop it.
+ return;
+ }
+ else if (irc::equals(command, "SQUERY"))
{
// SQUERY was introduced in PROTO_INSPIRCD_4; convert to PRIVMSG.
line.replace(cmdstart + 1, cmdend - cmdstart - 1, "PRIVMSG");