summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-25 13:03:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-25 13:03:03 +0000
commit382e95752145e6c8408ec8ff69176575c9258cd4 (patch)
tree93db3bb003798d282fd1be46112daba1e7e9b87b /src/xline.cpp
parent6cd3c99ca10220ca1451307f3b8d03cf6e3c4b7e (diff)
Fixes for removal of serverrec
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1946 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp36
1 files changed, 1 insertions, 35 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 24c37324a..0f329602c 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -78,15 +78,11 @@ extern std::vector<std::string> module_names;
extern int boundPortCount;
extern int portCount;
-extern int SERVERportCount;
+
extern int ports[MAXSOCKS];
-extern int defaultRoute;
-extern std::vector<long> auth_cookies;
extern std::stringstream config_f;
-extern serverrec* me[32];
-
extern FILE *log_file;
typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash;
@@ -310,36 +306,6 @@ bool zline_make_global(const char* ipaddr)
return false;
}
-void sync_xlines(serverrec* serv, char* tcp_host)
-{
- char data[MAXBUF];
-
- // for zlines and qlines, we should first check if theyre global...
- for (std::vector<ZLine>::iterator i = zlines.begin(); i != zlines.end(); i++)
- {
- if (i->is_global)
- {
- snprintf(data,MAXBUF,"%s } %s %s %lu %lu :%s",CreateSum().c_str(),i->ipaddr,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason);
- serv->SendPacket(data,tcp_host);
- }
- }
- for (std::vector<QLine>::iterator i = qlines.begin(); i != qlines.end(); i++)
- {
- if (i->is_global)
- {
- snprintf(data,MAXBUF,"%s { %s %s %lu %lu :%s",CreateSum().c_str(),i->nick,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason);
- serv->SendPacket(data,tcp_host);
- }
- }
- // glines are always global, so no need to check
- for (std::vector<GLine>::iterator i = glines.begin(); i != glines.end(); i++)
- {
- snprintf(data,MAXBUF,"%s # %s %s %lu %lu :%s",CreateSum().c_str(),i->hostmask,i->source,(unsigned long)i->set_time,(unsigned long)i->duration,i->reason);
- serv->SendPacket(data,tcp_host);
- }
-}
-
-
// deletes a z:line, returns true if the line existed and was removed
bool del_zline(const char* ipaddr)