summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-25 00:27:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-25 00:27:03 +0000
commit0b6b0442cbf669715b72aeb8451cc1c6b6aebc54 (patch)
treeb2351e17d1cfae491076f2b894985d556e5a5205 /src/modules
parentc2df23d941f7741be13d8fad277ef3cca9abd7b0 (diff)
Ensure that simplemodes are sent first (jilles requested this)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6611 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp
index 81fbda871..a376b5cb1 100644
--- a/src/modules/m_spanningtree/treesocket1.cpp
+++ b/src/modules/m_spanningtree/treesocket1.cpp
@@ -1256,6 +1256,8 @@ void TreeSocket::SendFJoins(TreeServer* Current, chanrec* c)
modes.append("+");
}
+ buffer.append(":").append(this->Instance->Config->ServerName).append(" FMODE ").append(c->name).append(" ").append(ConvToStr(c->age)).append(" +").append(c->ChanModes(true)).append("\r\n");
+
int linesize = 1;
for (BanList::iterator b = c->bans.begin(); b != c->bans.end(); b++)
{
@@ -1276,11 +1278,10 @@ void TreeSocket::SendFJoins(TreeServer* Current, chanrec* c)
linesize = 1;
}
}
- buffer.append(":").append(this->Instance->Config->ServerName).append(" FMODE ").append(c->name).append(" ").append(ConvToStr(c->age)).append(" +").append(c->ChanModes(true));
/* Only send these if there are any */
if (!modes.empty())
- buffer.append("\r\n").append(":").append(this->Instance->Config->ServerName).append(" FMODE ").append(c->name).append(" ").append(ConvToStr(c->age)).append(" +").append(modes).append(params);
+ buffer.append(":").append(this->Instance->Config->ServerName).append(" FMODE ").append(c->name).append(" ").append(ConvToStr(c->age)).append(" +").append(modes).append(params);
this->WriteLine(buffer);
}