From 62e2d693436a1f0bf96754a61cbc662c198e92bd Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 15:37:38 +0000 Subject: Add 1201 protocol compatability for SAVE git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11663 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/compat.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules') 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); + } } } -- cgit v1.2.3