diff options
| author | 2010-03-14 11:11:04 -0500 | |
|---|---|---|
| committer | 2010-08-03 17:32:40 -0400 | |
| commit | 34738d55ca588a99b9fedb4db0464f056f65d728 (patch) | |
| tree | 91ce60356dd1f43adecdc38ca63fcadfab691c3c /src/users.cpp | |
| parent | Fix 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.cpp | 11 |
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(); |
