diff options
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; |