summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-19 23:48:12 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-19 23:48:12 +0000
commitf5979244c7bb5d47e098cae881fba59b7fcb0ce8 (patch)
tree0662a738c29d8745310ad13f9f55477710a1eb41 /src/modules/m_spanningtree
parentb6c1d58023972a1833d017b25fd9146138f0c1f1 (diff)
Do not add empty strings to outgoing lines. *needs testing, may break stuff*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6815 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/utils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp
index 923308de0..30252e303 100644
--- a/src/modules/m_spanningtree/utils.cpp
+++ b/src/modules/m_spanningtree/utils.cpp
@@ -298,7 +298,8 @@ bool SpanningTreeUtilities::DoOneToAllButSender(const std::string &prefix, const
unsigned int words = params.size();
for (unsigned int x = 0; x < words; x++)
{
- FullLine = FullLine + " " + params[x];
+ if (!params[x].empty())
+ FullLine = FullLine + " " + params[x];
}
unsigned int items = this->TreeRoot->ChildCount();
for (unsigned int x = 0; x < items; x++)
@@ -324,7 +325,8 @@ bool SpanningTreeUtilities::DoOneToMany(const std::string &prefix, const std::st
unsigned int words = params.size();
for (unsigned int x = 0; x < words; x++)
{
- FullLine = FullLine + " " + params[x];
+ if (!params[x].empty())
+ FullLine = FullLine + " " + params[x];
}
unsigned int items = this->TreeRoot->ChildCount();
for (unsigned int x = 0; x < items; x++)