diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/users.cpp b/src/users.cpp index fd7efb7aa..e913086c2 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -642,14 +642,14 @@ void FullConnectUser(userrec* user, CullList* Goners) user->idle_lastmsg = TIME; log(DEBUG,"ConnectUser: %s",user->nick); - ConnectClass* a = GetClass(user); + ConnectClass a = GetClass(user); - if (a->type == CC_DENY) + if (a.type == CC_DENY) { Goners->AddItem(user,"Unauthorised connection"); return; } - if ((*(a->pass.c_str())) && (!user->haspassed)) + if ((*(a.pass.c_str())) && (!user->haspassed)) { Goners->AddItem(user,"Invalid password"); return; |