summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-24 15:48:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-24 15:48:00 +0000
commitfa04fb00cf96c8af5045de576b146b3a09f9b2ed (patch)
treea007aa1dbf04dd98da30652bed6decc02e23d4e9 /include
parent5d6d076cc3e6585ec3b52e1b7281767ed4760cb0 (diff)
Try this w00t, compiles, test running now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8343 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/users.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/include/users.h b/include/users.h
index c35680dac..1137a79cc 100644
--- a/include/users.h
+++ b/include/users.h
@@ -177,11 +177,11 @@ public:
/** Create a new connect class based on an existing connect class. This is required for std::vector (at least under windows).
*/
- ConnectClass(const ConnectClass& source) : classbase(), type(source.type), name(source.name),
- registration_timeout(source.registration_timeout), flood(source.flood), host(source.host),
- pingtime(source.pingtime), pass(source.pass), threshold(source.threshold), sendqmax(source.sendqmax),
- recvqmax(source.recvqmax), maxlocal(source.maxlocal), maxglobal(source.maxglobal), maxchans(source.maxchans),
- port(source.port)
+ ConnectClass(const ConnectClass* source) : classbase(), type(source->type), name(source->name),
+ registration_timeout(source->registration_timeout), flood(source->flood), host(source->host),
+ pingtime(source->pingtime), pass(source->pass), threshold(source->threshold), sendqmax(source->sendqmax),
+ recvqmax(source->recvqmax), maxlocal(source->maxlocal), maxglobal(source->maxglobal), maxchans(source->maxchans),
+ port(source->port)
{
this->RefCount = 0;
}
@@ -227,11 +227,11 @@ public:
* @param thename The name of the connect class
* @param source Another connect class to inherit all but the name from
*/
- ConnectClass(const std::string &thename, const ConnectClass &source) : type(source.type), name(thename),
- registration_timeout(source.registration_timeout), flood(source.flood), host(source.host),
- pingtime(source.pingtime), pass(source.pass), threshold(source.threshold), sendqmax(source.sendqmax),
- recvqmax(source.recvqmax), maxlocal(source.maxlocal), maxglobal(source.maxglobal), maxchans(source.maxchans),
- port(source.port)
+ ConnectClass(const std::string &thename, const ConnectClass* source) : type(source->type), name(thename),
+ registration_timeout(source->registration_timeout), flood(source->flood), host(source->host),
+ pingtime(source->pingtime), pass(source->pass), threshold(source->threshold), sendqmax(source->sendqmax),
+ recvqmax(source->recvqmax), maxlocal(source->maxlocal), maxglobal(source->maxglobal), maxchans(source->maxchans),
+ port(source->port)
{
this->RefCount = 0;
}
@@ -375,27 +375,27 @@ public:
return maxglobal;
}
- bool operator== (ConnectClass &other)
+ bool operator== (ConnectClass* other)
{
- return (other.GetName() == name);
+ return (other->GetName() == name);
}
- void operator=(const ConnectClass & other)
+ void operator=(const ConnectClass* other)
{
- type = other.type;
- name = other.name;
- registration_timeout = other.registration_timeout;
- flood = other.flood;
- host = other.host;
- pingtime = other.pingtime;
- pass = other.pass;
- threshold = other.threshold;
- sendqmax = other.sendqmax;
- recvqmax = other.recvqmax;
- maxlocal = other.maxlocal;
- maxglobal = other.maxglobal;
- maxchans = other.maxchans;
- port = other.port;
+ type = other->type;
+ name = other->name;
+ registration_timeout = other->registration_timeout;
+ flood = other->flood;
+ host = other->host;
+ pingtime = other->pingtime;
+ pass = other->pass;
+ threshold = other->threshold;
+ sendqmax = other->sendqmax;
+ recvqmax = other->recvqmax;
+ maxlocal = other->maxlocal;
+ maxglobal = other->maxglobal;
+ maxchans = other->maxchans;
+ port = other->port;
}
};
@@ -405,7 +405,7 @@ typedef std::vector<irc::string> InvitedList;
/** Holds a complete list of all allow and deny tags from the configuration file (connection classes)
*/
-typedef std::vector<ConnectClass> ClassVector;
+typedef std::vector<ConnectClass*> ClassVector;
/** Typedef for the list of user-channel records for a user
*/