Server - Fixed SETEUSER not checking disabled flag
authorJohn Hodge <[email protected]>
Wed, 19 Oct 2011 05:26:35 +0000 (13:26 +0800)
committerJohn Hodge <[email protected]>
Wed, 19 Oct 2011 05:26:35 +0000 (13:26 +0800)
src/server/server.c

index 1faa6fe..66d1062 100644 (file)
@@ -682,6 +682,13 @@ void Server_Cmd_SETEUSER(tClient *Client, char *Args)
                        return ;
                }
        }
+
+       // Disabled accounts
+       if( userFlags & USER_FLAG_DISABLED ) {
+               Client->UID = -1;
+               sendf(Client->Socket, "403 Account disabled\n");
+               return ;
+       }
        
        sendf(Client->Socket, "200 User set\n");
 }

UCC git Repository :: git.ucc.asn.au