From da1642834a1bf7a96051933f6b1257b6788b917c Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 29 Nov 2005 11:38:36 +0000 Subject: Fucking colon stripping git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2001 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 419d2eb96..367e5290d 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -710,10 +710,7 @@ class TreeSocket : public InspSocket if ((param.c_str()[0] == ':') && (item)) { char* str = (char*)param.c_str(); - if (stripcolon) - { - str++; - } + str++; param = str; std::string append; while (!s.eof()) @@ -727,6 +724,10 @@ class TreeSocket : public InspSocket } } item++; + if ((strchr(param.c_str(),' ')) && (!stripcolon)) + { + param = ":"+param; + } n.push_back(param); } return n; -- cgit v1.2.3