From: nishi Date: Thu, 13 Jun 2024 01:52:00 +0000 (+0000) Subject: format X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=4adf5b9f6c505deb7b49a259d17eb6e51f6f71bc;p=dataworks.git format git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@283 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Server/server.c b/Server/server.c index 0c87034..f471cae 100644 --- a/Server/server.c +++ b/Server/server.c @@ -216,14 +216,14 @@ void protocol_loop(int sock) { } else { writeline(sock, "ERROR:NO_AUTH"); } - } else if(__dw_strcaseequ(buf, "EXEC")){ - if(auth ? login : 1){ - if(has_arg){ + } else if(__dw_strcaseequ(buf, "EXEC")) { + if(auth ? login : 1) { + if(has_arg) { dataworks_database_execute_code(db, buf + i + 1, false); - }else{ + } else { writeline(sock, "ERROR:NEED_MORE_ARGS"); } - }else{ + } else { writeline(sock, "ERROR:NOT_IN"); } } else {