X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fusers.cpp;h=f73aa7a155c05f1cb786e5f1fa48ba60bd26981d;hb=704ae49baa572ecc0779be85a23c55ae2db7732e;hp=5afed6fe14b5395871bba8ad7b4aa5669a048e0f;hpb=b87f7d186ca9dd583fb2b629352a5b2f38589e6c;p=user%2Fhenk%2Fcode%2Finspircd.git 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 modules; +extern std::vector factory; +extern std::vector 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 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; + } } } }