From 0b98824cc5767079f0f895111253b98843e15414 Mon Sep 17 00:00:00 2001 From: w00t 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 --- src/commands/cmd_oper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/commands/cmd_oper.cpp') diff --git a/src/commands/cmd_oper.cpp b/src/commands/cmd_oper.cpp index 70376c894..55277b1ba 100644 --- a/src/commands/cmd_oper.cpp +++ b/src/commands/cmd_oper.cpp @@ -89,7 +89,10 @@ CmdResult CommandOper::Handle (const char** parameters, int, User *user) if (*HostName) user->ChangeDisplayedHost(HostName); if (*ClassName) - user->CheckClass(ClassName); + { + user->SetClass(ClassName); + user->CheckClass(); + } found = true; type_invalid = false; break; -- cgit v1.2.3