diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-23 23:25:49 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-23 23:25:49 +0000 |
commit | 0b98824cc5767079f0f895111253b98843e15414 (patch) | |
tree | a23bf1bb6b270d325443573858733bea8b098933 /include | |
parent | bbb7c9eec52bd4176f25004996701d6133f51073 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/users.h | 15 |
1 files changed, 10 insertions, 5 deletions
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 */ |