]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Whoops, ++it++? Thats gonna break :p
[user/henk/code/inspircd.git] / src / users.cpp
index 8d0daf98785528b191ae19539a6978ea82873475..906a2e9c3dccda8936052850b3ccae66d11cc3ba 100644 (file)
@@ -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();