summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-01 17:05:12 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-01 17:05:12 +0200
commit80e88c163dbd77b06b61d4fd734d51249cc0e172 (patch)
tree2ee3fa3fea938c56f3c7d4fc31bea02eaa664d7e /src/users.cpp
parentc1b376cd396f56e4d0eb3eafc04ff169e509ffc7 (diff)
Move member variables from User to LocalUser
- idle_lastmsg - dns_done - quitting_sendq - exempt - lastping
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp
index cb07707cd..4241b8f81 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -201,10 +201,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 +221,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);
@@ -734,7 +735,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 };