1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 01:23:13 +02:00

Don't burst SXLines when we link because its unnecessary and fixed applying SQLines

This commit is contained in:
Adam
2011-02-27 22:12:51 -05:00
parent 0d1a0e8db9
commit fdcb7e56ae
3 changed files with 1 additions and 19 deletions
-4
View File
@@ -97,10 +97,6 @@ class CoreExport XLineManager
*/
static std::pair<XLineManager *, XLine *> CheckAll(User *u);
/** Called on burst when all of our XLines should be bursted to the uplink
*/
static void Burst();
/** Get the number of XLines in this XLineManager
* @return The number of XLines
*/
-3
View File
@@ -77,9 +77,6 @@ void introduce_user(const Anope::string &user)
/* Load MLock from the database now that we know what modes exist */
for (registered_channel_map::iterator it = RegisteredChannelList.begin(), it_end = RegisteredChannelList.end(); it != it_end; ++it)
it->second->LoadMLock();
/* Add our SXLines */
XLineManager::Burst();
}
/*************************************************************************/
+1 -12
View File
@@ -252,17 +252,6 @@ std::pair<XLineManager *, XLine *> XLineManager::CheckAll(User *u)
return ret;
}
void XLineManager::Burst()
{
for (std::list<XLineManager *>::iterator it = XLineManagers.begin(), it_end = XLineManagers.end(); it != it_end; ++it)
{
XLineManager *xlm = *it;
for (std::vector<XLine *>::const_iterator it2 = xlm->GetList().begin(), it2_end = xlm->GetList().end(); it2 != it2_end; ++it2)
xlm->Send(*it2);
}
}
/** Get the number of XLines in this XLineManager
* @return The number of XLines
*/
@@ -763,7 +752,7 @@ bool SQLineManager::Check(Channel *c)
{
if (ircd->chansqline && SQLine)
{
for (std::vector<XLine *>::const_iterator it = SGLine->GetList().begin(), it_end = SGLine->GetList().end(); it != it_end; ++it)
for (std::vector<XLine *>::const_iterator it = SQLine->GetList().begin(), it_end = SQLine->GetList().end(); it != it_end; ++it)
{
XLine *x = *it;