diff options
| author | 2010-02-09 12:43:13 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:34 -0400 | |
| commit | d439bfcb17ccaf3d8e9366ce8d3922d3b83326b9 (patch) | |
| tree | 4d7341ebe0413e8f741d4ab11f0a1d592aa324a7 /src/modules/m_spanningtree/netburst.cpp | |
| parent | Update InspIRCd::SendMode to take a modestacker (diff) | |
Fixups for s2s sync (currently limited to lettered modes)
Diffstat (limited to 'src/modules/m_spanningtree/netburst.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/netburst.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index 3a04ff63d..b9743f7a7 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -94,7 +94,6 @@ void TreeSocket::SendFJoins(TreeServer* Current, Channel* c) bool looped_once = false; const UserMembList *ulist = c->GetUsers(); - std::string modes; std::string params; for (UserMembCIter i = ulist->begin(); i != ulist->end(); i++) @@ -133,30 +132,7 @@ void TreeSocket::SendFJoins(TreeServer* Current, Channel* c) buffer.append(list).append("\r\n"); } - int linesize = 1; - for (BanList::iterator b = c->bans.begin(); b != c->bans.end(); b++) - { - int size = b->data.length() + 2; - int currsize = linesize + size; - if (currsize <= 350) - { - modes.append("b"); - params.append(" ").append(b->data); - linesize += size; - } - if ((modes.length() >= ServerInstance->Config->Limits.MaxModes) || (currsize > 350)) - { - /* Wrap at MAXMODES */ - buffer.append(":").append(ServerInstance->Config->GetSID()).append(" FMODE ").append(c->name).append(" ").append(ConvToStr(c->age)).append(" +").append(modes).append(params).append("\r\n"); - modes.clear(); - params.clear(); - linesize = 1; - } - } - - /* Only send these if there are any */ - if (!modes.empty()) - buffer.append(":").append(ServerInstance->Config->GetSID()).append(" FMODE ").append(c->name).append(" ").append(ConvToStr(c->age)).append(" +").append(modes).append(params); + // TODO burst all listmodes this->WriteLine(buffer); } |
