diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 15:37:38 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 15:37:38 +0000 |
commit | 62e2d693436a1f0bf96754a61cbc662c198e92bd (patch) | |
tree | 987da38233775d3aa78f3ac131f5afcd8555abc0 /src | |
parent | 9dde0b1b33a81af5fd7cc69304269ee9ae2003dd (diff) |
Add 1201 protocol compatability for SAVE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11663 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/compat.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index f278913c8..b23cf5c02 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -62,6 +62,13 @@ void TreeSocket::WriteLine(std::string line) ServerInstance->Logs->Log("m_spanningtree",DEBUG,"Rewriting FIDENT for 1201-protocol server"); line = ":" + ServerInstance->Config->GetSID() + " CHGIDENT " + line.substr(1,a-2) + line.substr(b); } + else if (proto_version < 1202 && command == "SAVE") + { + ServerInstance->Logs->Log("m_spanningtree",DEBUG,"Rewriting SAVE for 1201-protocol server"); + std::string::size_type c = line.find(' ', b + 1); + std::string uid = line.substr(b, c - b); + line = ":" + ServerInstance->Config->GetSID() + " SVSNICK " + uid + line.substr(b); + } } } |