diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-29 11:38:36 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-29 11:38:36 +0000 |
commit | da1642834a1bf7a96051933f6b1257b6788b917c (patch) | |
tree | 31cb7b25ed3a9e16f83eefcb0e7172adaa2adacf /src/modules | |
parent | 7fc980b5b75407fcff9975f34e76460215d387b3 (diff) |
Fucking colon stripping
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2001 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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; |