]> Nishi Git Mirror - dataworks.git/commitdiff
format
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Thu, 13 Jun 2024 01:52:00 +0000 (01:52 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Thu, 13 Jun 2024 01:52:00 +0000 (01:52 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@283 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Server/server.c

index 0c87034158183d02c35b10ec422ee1605349e163..f471caee5d0b8c9a0ede4919dc97fd139e18d9f7 100644 (file)
@@ -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 {