From: brain Date: Thu, 15 Dec 2005 13:59:26 +0000 (+0000) Subject: Added externs X-Git-Tag: v2.0.23~9598 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=704ae49baa572ecc0779be85a23c55ae2db7732e;hp=b87f7d186ca9dd583fb2b629352a5b2f38589e6c;p=user%2Fhenk%2Fcode%2Finspircd.git Added externs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2475 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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; + } } } }