From 34738d55ca588a99b9fedb4db0464f056f65d728 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sun, 14 Mar 2010 11:11:04 -0500 Subject: Allow m_sqlauth to set connect class --- src/users.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index b6247ca98..f40286bc4 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -801,7 +801,16 @@ void LocalUser::FullConnect() * may put the user into a totally seperate class with different restrictions! so we *must* check again. * Don't remove this! -- w00t */ - SetClass(); + if (ServerInstance->ForcedClass.get(this)) + { + std::string* cls = ServerInstance->ForcedClass.get(this); + SetClass(*cls); + ServerInstance->ForcedClass.unset(this); + } + else + { + SetClass(); + } CheckClass(); CheckLines(); -- cgit v1.3.1-10-gc9f91