diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-11-27 14:17:41 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-11-27 14:17:41 +0000 |
commit | fb07f6293eec3ecb9916dc30f9dcdc0ab92eedfb (patch) | |
tree | 3eaf974bc6e32391b91e93f3924e51402d0c4204 /src/modules | |
parent | adf2b2c9996456222c164bc7e2499202b1950081 (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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); } |