From ed4188cff393bd544aabd44f593640a473deacc4 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 28 Feb 2010 23:46:27 +0000 Subject: Fix snomask sending having the final-parameter colon stripped (noticed in globops in bug #951) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12573 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 63b73186a..e7c3d57fa 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -342,7 +342,8 @@ void TreeSocket::ProcessConnectedLine(std::string& prefix, std::string& command, { if (params.size() >= 2) { - ServerInstance->SNO->WriteToSnoMask(*(params[0].c_str()), "From " + who->nick + ": "+ params[1]); + ServerInstance->SNO->WriteToSnoMask(params[0][0], "From " + who->nick + ": "+ params[1]); + params[1] = ":" + params[1]; Utils->DoOneToAllButSender(prefix, command, params, prefix); } } -- cgit v1.2.3