aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-03-14 11:11:04 -0500
committerGravatar Daniel De Graaf2010-08-03 17:32:40 -0400
commit34738d55ca588a99b9fedb4db0464f056f65d728 (patch)
tree91ce60356dd1f43adecdc38ca63fcadfab691c3c /src/users.cpp
parentFix uninit pointer on MySQL initial connection (diff)
Allow m_sqlauth to set connect class
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp11
1 files changed, 10 insertions, 1 deletions
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();