diff options
| author | 2024-07-24 19:26:54 +0100 | |
|---|---|---|
| committer | 2024-07-24 19:26:54 +0100 | |
| commit | caab65a8313e1c7312583503e58586b7619ab788 (patch) | |
| tree | 7a424990de263fc8c61090203f2a0b9b09bf0efb /src/modules/m_spanningtree/compat.cpp | |
| parent | Run irctest against Anope 2.1. (diff) | |
Move 1205 UID compatibility code to PreProcessOldProtocolMessage.
This should make it more reliable.
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/compat.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index 8bfe1a15e..145d3667e 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -151,5 +151,14 @@ bool TreeSocket::PreProcessOldProtocolMessage(User*& who, std::string& cmd, Comm params.insert(params.begin(), { target->uuid.substr(0, 3), cmd }); cmd = "ENCAP"; } + else if (irc::equals(cmd, "UID")) + { + if (params.size() < 6) + return false; // Malformed. + + // :<sid> UID <uuid> <nickchanged> <nick> <host> <dhost> <user> <duser> <ip.string> <signon> <modes> [<modepara>] :<real> + // ^^^^^^ New in 1206 + params.insert(params.begin() + 5, params[5]); + } return true; } |
