From fb07f6293eec3ecb9916dc30f9dcdc0ab92eedfb Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 27 Nov 2008 14:17:41 +0000 Subject: Forward-port: Created commit fcadb0b: Change rm to force removal for configureclean target, obsoletes debian patch. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10829 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 3ad9b3227..f35d3f6a5 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -486,7 +486,18 @@ bool TreeSocket::ProcessLine(std::string &line) { if (params.size() >= 2) { + std::string oldprefix; + if (!ServerSource) + { + oldprefix = prefix; + User *u = ServerInstance->FindNick(prefix); + if (!u) + return true; + prefix = u->nick; + } + ServerInstance->SNO->WriteToSnoMask(*(params[0].c_str()), "From " + (ServerSource ? ServerSource->GetName().c_str() : prefix) + ": "+ params[1]); + prefix = oldprefix; return Utils->DoOneToAllButSenderRaw(line, sourceserv, prefix, command, params); } -- cgit v1.2.3