summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-21 17:11:02 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-21 17:11:02 +0000
commit7e94b3110480efd4ef1e46cd44dc31c46aa9f8a7 (patch)
tree4ac454cc152023cf8affa8052d5820f6463deaf9 /include/users.h
parent33d11457b46d8757142b3ab4bcac890619183c98 (diff)
Remove duplicated member, kept in classes.. Possible now we have a pointer. this saves (another) 4 bytes per user.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10064 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/users.h b/include/users.h
index 503a1e568..b3de65941 100644
--- a/include/users.h
+++ b/include/users.h
@@ -258,7 +258,7 @@ public:
*/
unsigned long limit;
- int GetMaxChans()
+ size_t GetMaxChans()
{
return maxchans;
}
@@ -456,10 +456,6 @@ class CoreExport User : public connection
*/
void DecrementModes();
- /** Max channels for this user
- */
- unsigned int MaxChans;
-
std::map<std::string, bool>* AllowedOperCommands;
/** Allowed user modes from oper classes. */
@@ -505,8 +501,6 @@ class CoreExport User : public connection
*/
void StartDNSLookup();
- unsigned int GetMaxChans();
-
/** The users nickname.
* An invalid nickname indicates an unregistered connection prior to the NICK command.
* Use InspIRCd::IsNick() to validate nicknames.