summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-13 00:00:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-13 00:00:18 +0000
commit22ea240662998b28abb1a4934fa0da541f6b42e4 (patch)
treebfcb9a8aad7e2c49de36ea9c4580f624ec5a5a52
parenta3a938b44660a3e8344d7899833e63b996c03951 (diff)
Set up externs to allow moving loads of crap out of inspircd.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2362 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/inspircd.h3
-rw-r--r--src/userprocess.cpp46
2 files changed, 49 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 1c95eb9e5..862b33de3 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -127,3 +127,6 @@ const char* FindServerNamePtr(std::string servername);
std::string GetVersionString();
void* dns_task(void* arg);
+
+void process_buffer(const char* cmdbuf,userrec *user);
+void FullConnectUser(userrec* user);
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 0b8474583..079d5a43d 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -81,6 +81,52 @@ extern std::vector<InspSocket*> module_sockets;
extern SocketEngine* SE;
+extern time_t TIME;
+extern time_t OLDTIME;
+
+extern int DieDelay;
+extern time_t startup_time;
+extern int NetBufferSize;
+extern int MaxConn;
+extern unsigned int SoftLimit;
+extern int MaxWhoResults;
+extern time_t nb_start;
+extern int dns_timeout;
+
+extern int statsAccept, statsRefused, statsUnknown, statsCollisions, statsDns, statsDnsGood, statsDnsBad, statsConnects, statsSent, statsRecv;
+
+extern userrec* fd_ref_table[65536];
+
+extern int LogLevel;
+extern char ServerName[MAXBUF];
+extern char Network[MAXBUF];
+extern char ServerDesc[MAXBUF];
+extern char AdminName[MAXBUF];
+extern char AdminEmail[MAXBUF];
+extern char AdminNick[MAXBUF];
+extern char diepass[MAXBUF];
+extern char restartpass[MAXBUF];
+extern char motd[MAXBUF];
+extern char rules[MAXBUF];
+extern char list[MAXBUF];
+extern char PrefixQuit[MAXBUF];
+extern char DieValue[MAXBUF];
+extern char DNSServer[MAXBUF];
+extern char data[65536];
+
+
+typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash;
+typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash;
+typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache;
+typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash;
+
+extern user_hash clientlist;
+extern chan_hash chanlist;
+extern whowas_hash whowas;
+
+extern FILE *log_file;
+extern std::stringstream config_f;
+
void ProcessUser(userrec* cu)
{
int result = EAGAIN;