]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
ListModeBase: Minor changes to original u_listmode code
[user/henk/code/inspircd.git] / src / users.cpp
index cb07707cd04eb0cfc29797103c72ea0abbfe5c04..5058cfcc24503d18da5265b1aca3d8769af26b4e 100644 (file)
@@ -28,7 +28,6 @@
 #include "socketengine.h"
 #include "xline.h"
 #include "bancache.h"
-#include "commands/cmd_whowas.h"
 
 already_sent_t LocalUser::already_sent_id = 0;
 
@@ -201,10 +200,9 @@ User::User(const std::string &uid, const std::string& sid, int type)
        : uuid(uid), server(sid), usertype(type)
 {
        age = ServerInstance->Time();
-       signon = idle_lastmsg = 0;
+       signon = 0;
        registered = 0;
-       quietquit = quitting = exempt = dns_done = false;
-       quitting_sendq = false;
+       quietquit = quitting = false;
        client_sa.sa.sa_family = AF_UNSPEC;
 
        ServerInstance->Logs->Log("USERS", DEBUG, "New UUID for user: %s", uuid.c_str());
@@ -222,6 +220,8 @@ LocalUser::LocalUser(int myfd, irc::sockets::sockaddrs* client, irc::sockets::so
        bytes_in(0), bytes_out(0), cmds_in(0), cmds_out(0), nping(0), CommandFloodPenalty(0),
        already_sent(0)
 {
+       exempt = quitting_sendq = dns_done = false;
+       idle_lastmsg = 0;
        ident = "unknown";
        lastping = 0;
        eh.SetFd(myfd);
@@ -687,18 +687,6 @@ void User::UnOper()
        this->modes[UM_OPERATOR] = 0;
 }
 
-/* adds or updates an entry in the whowas list */
-void User::AddToWhoWas()
-{
-       Module* whowas = ServerInstance->Modules->Find("cmd_whowas.so");
-       if (whowas)
-       {
-               WhowasRequest req(NULL, whowas, WhowasRequest::WHOWAS_ADD);
-               req.user = this;
-               req.Send();
-       }
-}
-
 /*
  * Check class restrictions
  */
@@ -734,7 +722,7 @@ void LocalUser::CheckClass()
        this->nping = ServerInstance->Time() + a->GetPingTime() + ServerInstance->Config->dns_timeout;
 }
 
-bool User::CheckLines(bool doZline)
+bool LocalUser::CheckLines(bool doZline)
 {
        const char* check[] = { "G" , "K", (doZline) ? "Z" : NULL, NULL };