summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/users.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp
index afc8f6f11..57a496c8b 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -64,7 +64,9 @@ const char* User::FormatModes(bool showparameters)
}
User::User(const std::string& uid, Server* srv, int type)
- : uuid(uid), server(srv), usertype(type)
+ : uuid(uid)
+ , server(srv)
+ , usertype(type)
{
age = ServerInstance->Time();
signon = 0;
@@ -83,9 +85,15 @@ User::User(const std::string& uid, Server* srv, int type)
}
LocalUser::LocalUser(int myfd, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* servaddr)
- : User(ServerInstance->UIDGen.GetUID(), ServerInstance->FakeClient->server, USERTYPE_LOCAL), eh(this),
- bytes_in(0), bytes_out(0), cmds_in(0), cmds_out(0), nping(0), CommandFloodPenalty(0),
- already_sent(0)
+ : User(ServerInstance->UIDGen.GetUID(), ServerInstance->FakeClient->server, USERTYPE_LOCAL)
+ , eh(this)
+ , bytes_in(0)
+ , bytes_out(0)
+ , cmds_in(0)
+ , cmds_out(0)
+ , nping(0)
+ , CommandFloodPenalty(0)
+ , already_sent(0)
{
exempt = quitting_sendq = false;
idle_lastmsg = 0;