diff options
-rw-r--r-- | src/users.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index 8d0daf987..906a2e9c3 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -917,6 +917,13 @@ void userrec::AddClient(InspIRCd* Instance, int socket, int port, bool iscached, * See my note down there for why this is required. DO NOT REMOVE. :) -- w00t */ ConnectClass* i = New->GetClass(); + + if (!i) + { + userrec::QuitUser(Instance, New, "Access denied by configuration"); + return; + } + New->CheckClass(); New->pingmax = i->GetPingTime(); |