summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 12:34:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 12:34:57 +0000
commit4c65d06850f4440498ee37387d7b578478a619aa (patch)
treea8792dc35c6d8bd657c1235226db1c7142354407 /include
parent826aebdb72feceeb1acdf670f46f2975a11083bc (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/users.h14
1 files changed, 3 insertions, 11 deletions
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);
}
};