From 4c65d06850f4440498ee37387d7b578478a619aa Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Dec 2005 12:34:57 +0000 Subject: Changed two fields in ConnectClass to strings, moved constructor stuff to init-list git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2632 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'include/users.h') diff --git a/include/users.h b/include/users.h index b5532f1e2..a5ec3191f 100644 --- a/include/users.h +++ b/include/users.h @@ -63,13 +63,13 @@ class ConnectClass : public classbase int flood; /** Host mask for this line */ - char host[MAXBUF]; + std::string host; /** Number of seconds between pings for this line */ int pingtime; /** (Optional) Password for this line */ - char pass[MAXBUF]; + std::string pass; /** Threshold value for flood disconnect */ @@ -83,16 +83,8 @@ class ConnectClass : public classbase */ long recvqmax; - ConnectClass() + ConnectClass() : registration_timeout(0), flood(0), host(""), pingtime(0), pass(""), threshold(0), sendqmax(0), recvqmax(0) { - registration_timeout = 0; - flood = 0; - pingtime = 0; - threshold = 0; - sendqmax = 0; - recvqmax = 0; - strlcpy(host,"",MAXBUF); - strlcpy(pass,"",MAXBUF); } }; -- cgit v1.2.3