From 0b98824cc5767079f0f895111253b98843e15414 Mon Sep 17 00:00:00 2001
From: w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Date: Tue, 23 Oct 2007 23:25:49 +0000
Subject: Some more class stuff, blah. Now possible to move a user to a
 different class via User::SetClass(), which cmd_oper uses. GetClass() is now
 just a wrapper around User::MyClass. User::CheckClass() does not support any
 parameters anymore, nor does User::GetClass().. I think I have this all right
 ;p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8337 e03df62e-2008-0410-955e-edbf42e46eb7
---
 include/users.h | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

(limited to 'include')

diff --git a/include/users.h b/include/users.h
index 211ae8c04..148c673f4 100644
--- a/include/users.h
+++ b/include/users.h
@@ -925,7 +925,7 @@ class CoreExport User : public connection
 
 	/** Call this method to find the matching <connect> for a user, and to check them against it.
 	 */
-	void CheckClass(const std::string &explicit_class = "");
+	void CheckClass();
 
 	/** Use this method to fully connect a user.
 	 * This will send the message of the day, check G/K/E lines, etc.
@@ -1135,11 +1135,16 @@ class CoreExport User : public connection
 	 */
 	void PurgeEmptyChannels();
 
-	/** Get the connect class which matches this user's host or IP address
-	 * @param explicit_name Set this string to tie the user to a specific class name
-	 * @return A reference to this user's connect class
+	/** Get the connect class which this user belongs to.
+	 * @return A pointer to this user's connect class
 	 */
-	ConnectClass* GetClass(const std::string &explicit_name = "");
+	ConnectClass *GetClass();
+
+	/** Set the connect class to which this user belongs to.
+	 * @param explicit_name Set this string to tie the user to a specific class name. Otherwise, the class is fitted by checking <connect> tags from the configuration file.
+	 * @return A reference to this user's current connect class.
+	 */
+	ConnectClass *SetClass(const std::string &explicit_name = "");
 
 	/** Show the message of the day to this user
 	 */
-- 
cgit v1.2.3