From: John Hodge Date: Wed, 19 Oct 2011 05:26:35 +0000 (+0800) Subject: Server - Fixed SETEUSER not checking disabled flag X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=0da15449ea2ea9f32612cb249b4709ee54df4761;p=tpg%2Fopendispense2.git Server - Fixed SETEUSER not checking disabled flag --- diff --git a/src/server/server.c b/src/server/server.c index 1faa6fe..66d1062 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -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"); }