summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
+ }
}
}
}