summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 13:59:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 13:59:26 +0000
commit704ae49baa572ecc0779be85a23c55ae2db7732e (patch)
treea5d272c15519399a51d8cc18bb59c639bc991bb5 /src
parentb87f7d186ca9dd583fb2b629352a5b2f38589e6c (diff)
Added externs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2475 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp33
1 files changed, 23 insertions, 10 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 5afed6fe1..f73aa7a15 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -29,9 +29,25 @@ using namespace std;
#include "inspstring.h"
#include "commands.h"
#include "helperfuncs.h"
-
-extern ServerConfig* Config;
+#include "typedefs.h"
+#include "hashcomp.h"
+
+extern InspIRCd* ServerInstance;
+extern int WHOWAS_STALE = 48; // default WHOWAS Entries last 2 days before they go 'stale'
+extern int WHOWAS_MAX = 100; // default 100 people maximum in the WHOWAS list
+extern std::vector<Module*> modules;
+extern std::vector<ircd_module*> factory;
+extern std::vector<InspSocket*> module_sockets;
+extern int MODCOUNT;
+extern InspSocket* socket_ref[65535];
extern time_t TIME;
+extern SocketEngine* SE;
+extern userrec* fd_ref_table[65536];
+extern serverstats* stats;
+extern ServerConfig *Config;
+extern user_hash clientlist;
+extern whowas_hash whowas;
+
std::vector<userrec*> all_opers;
userrec::userrec()
@@ -126,15 +142,12 @@ void userrec::RemoveInvite(irc::string &channel)
{
for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
{
- if (i->channel)
+ irc::string compare = i->channel;
+ if (compare == channel)
{
- irc::string compare = i->channel;
- if (compare == channel)
- {
- invites.erase(i);
- return;
- }
- }
+ invites.erase(i);
+ return;
+ }
}
}
}