summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-23 23:32:31 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-23 23:32:31 +0000
commite8f2288bfeab7a76e83d0ebcbedce7357b4cb18f (patch)
tree831fe7ede21677950c478f1444792ec6e94abf24
parent37d6059f65a6aec561f0bfb4877dd95a35e72ab7 (diff)
Fix bug experienced by satmd, remove space indents + tidy a little
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5536 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 837ca2ce4..63733f29a 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1914,19 +1914,22 @@ class TreeSocket : public InspSocket
if (numusers)
buffer.append(list).append("\n");
- for (BanList::iterator b = c->bans.begin(); b != c->bans.end(); b++)
- {
+ for (BanList::iterator b = c->bans.begin(); b != c->bans.end(); b++)
+ {
modes.append("b");
params.append(" ").append(b->data);
+
if (params.length() >= MAXMODES)
{
/* Wrap at MAXMODES */
- buffer.append(":").append(this->Instance->Config->ServerName).append(" FMODE ").append(c->name).append(ConvToStr(c->age)).append(" +").append(modes).append(params).append("\n");
+ buffer.append(":").append(this->Instance->Config->ServerName).append(" FMODE ").append(c->name)..append(" ").append(ConvToStr(c->age)).append(" +").append(modes).append(params).append("\n");
modes = "";
params = "";
}
- }
+ }
+
buffer.append(":").append(this->Instance->Config->ServerName).append(" FMODE ").append(c->name).append(ConvToStr(c->age)).append(" +").append(c->ChanModes(true));
+
/* Only send these if there are any */
if (!modes.empty())
buffer.append("\n").append(":").append(this->Instance->Config->ServerName).append(" FMODE ").append(c->name).append(ConvToStr(c->age)).append(" +").append(modes).append(params);