diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 12:38:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 12:38:43 +0000 |
commit | 036505a11a1de613d42d2021704cc325289c1b04 (patch) | |
tree | 54eaf922de33945eafd7e43e8b2a82d48e2fbaa2 /src/modules/m_spanningtree.cpp | |
parent | c0d8af77bb310786c8ade9e476b55990a3ab397b (diff) |
peline/pxline etc stuff removed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4884 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index bbebda851..c94f43ed0 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -97,8 +97,6 @@ class TreeSocket; */ TreeServer *TreeRoot; - - /* This hash_map holds the hash equivalent of the server * tree, used for rapid linear lookups. */ @@ -120,18 +118,6 @@ bool FlatLinks; /* Hide U-Lined servers in /MAP and /LINKS */ bool HideULines; -/* Imported from xline.cpp for use during netburst */ -extern std::vector<KLine> klines; -extern std::vector<GLine> glines; -extern std::vector<ZLine> zlines; -extern std::vector<QLine> qlines; -extern std::vector<ELine> elines; -extern std::vector<KLine> pklines; -extern std::vector<GLine> pglines; -extern std::vector<ZLine> pzlines; -extern std::vector<QLine> pqlines; -extern std::vector<ELine> pelines; - std::vector<std::string> ValidIPs; class UserManager : public classbase @@ -1694,42 +1680,42 @@ class TreeSocket : public InspSocket const char* sn = n.c_str(); int iterations = 0; /* Yes, these arent too nice looking, but they get the job done */ - for (std::vector<ZLine>::iterator i = zlines.begin(); i != zlines.end(); i++, iterations++) + for (std::vector<ZLine>::iterator i = Instance->XLines->zlines.begin(); i != Instance->XLines->zlines.end(); i++, iterations++) { snprintf(data,MAXBUF,":%s ADDLINE Z %s %s %lu %lu :%s",sn,i->ipaddr,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason); this->WriteLine(data); } - for (std::vector<QLine>::iterator i = qlines.begin(); i != qlines.end(); i++, iterations++) + for (std::vector<QLine>::iterator i = Instance->XLines->qlines.begin(); i != Instance->XLines->qlines.end(); i++, iterations++) { snprintf(data,MAXBUF,":%s ADDLINE Q %s %s %lu %lu :%s",sn,i->nick,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason); this->WriteLine(data); } - for (std::vector<GLine>::iterator i = glines.begin(); i != glines.end(); i++, iterations++) + for (std::vector<GLine>::iterator i = Instance->XLines->glines.begin(); i != Instance->XLines->glines.end(); i++, iterations++) { snprintf(data,MAXBUF,":%s ADDLINE G %s %s %lu %lu :%s",sn,i->hostmask,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason); this->WriteLine(data); } - for (std::vector<ELine>::iterator i = elines.begin(); i != elines.end(); i++, iterations++) + for (std::vector<ELine>::iterator i = Instance->XLines->elines.begin(); i != Instance->XLines->elines.end(); i++, iterations++) { snprintf(data,MAXBUF,":%s ADDLINE E %s %s %lu %lu :%s",sn,i->hostmask,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason); this->WriteLine(data); } - for (std::vector<ZLine>::iterator i = pzlines.begin(); i != pzlines.end(); i++, iterations++) + for (std::vector<ZLine>::iterator i = Instance->XLines->pzlines.begin(); i != Instance->XLines->pzlines.end(); i++, iterations++) { snprintf(data,MAXBUF,":%s ADDLINE Z %s %s %lu %lu :%s",sn,i->ipaddr,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason); this->WriteLine(data); } - for (std::vector<QLine>::iterator i = pqlines.begin(); i != pqlines.end(); i++, iterations++) + for (std::vector<QLine>::iterator i = Instance->XLines->pqlines.begin(); i != Instance->XLines->pqlines.end(); i++, iterations++) { snprintf(data,MAXBUF,":%s ADDLINE Q %s %s %lu %lu :%s",sn,i->nick,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason); this->WriteLine(data); } - for (std::vector<GLine>::iterator i = pglines.begin(); i != pglines.end(); i++, iterations++) + for (std::vector<GLine>::iterator i = Instance->XLines->pglines.begin(); i != Instance->XLines->pglines.end(); i++, iterations++) { snprintf(data,MAXBUF,":%s ADDLINE G %s %s %lu %lu :%s",sn,i->hostmask,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason); this->WriteLine(data); } - for (std::vector<ELine>::iterator i = pelines.begin(); i != pelines.end(); i++, iterations++) + for (std::vector<ELine>::iterator i = Instance->XLines->pelines.begin(); i != Instance->XLines->pelines.end(); i++, iterations++) { snprintf(data,MAXBUF,":%s ADDLINE E %s %s %lu %lu :%s",sn,i->hostmask,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason); this->WriteLine(data); |