New 231 response code (SERVER_SHUTTING_DOWN)
authorArt Cancro <ajc@citadel.org>
Mon, 5 Nov 2007 17:06:45 +0000 (17:06 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 5 Nov 2007 17:06:45 +0000 (17:06 +0000)
citadel/citserver.c
citadel/ipcdef.h

index 6eb838c4537b60f84925bea4a7c50d13e36ba2a9..966bbbe8dedc10bbdd865067689295e618ef3911 100644 (file)
@@ -824,7 +824,7 @@ void cmd_down(char *argbuf) {
        }
        else
        {
-               cprintf(Reply, CIT_OK);
+               cprintf(Reply, CIT_OK + SERVER_SHUTTING_DOWN);
        }
        time_to_die = 1;
 }
index 5ca5e552f733d53424ef72244d7858ff917459a0..438dc4dcb1dda323975cebb73afa4342b3bfdb19 100644 (file)
@@ -18,6 +18,7 @@ extern "C" {
 #define ILLEGAL_VALUE          12
 #define NOT_LOGGED_IN          20
 #define CMD_NOT_SUPPORTED      30
+#define SERVER_SHUTTING_DOWN   31
 #define PASSWORD_REQUIRED      40
 #define ALREADY_LOGGED_IN      41
 #define USERNAME_REQUIRED      42