]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/gameserv.cpp
Added a loop that makes gameserv reload if disconnected. It gives 3 attempts until...
[irc/gameservirc.git] / gameserv / gameserv.cpp
index fb613340b24f26bb76d279a58506013e845f808d..2239ce7fb41c64e6a2d05f711e49055cc89cc6cc 100644 (file)
@@ -46,7 +46,6 @@ int stricmp(const char *s1, const char *s2);
 int strnicmp(const char *s1, const char *s2, size_t len);
 // String Functions
 
-
 /********** Password functions **********/
 
 bool passcmp(char *encrypted, char *plaintext); // Compares an encrypted pass with a plain text one
@@ -58,6 +57,7 @@ bool check_password(char *name, char *plaintext); // Finds a password for the gi
 
 /********** GameServ Booleans **********/
 
+bool shuttingdown;
 bool is_playing(char *u); // True if the given nickname in the clients list is playing.
 bool is_playing(aClient *user);
 
@@ -243,6 +243,7 @@ void gameserv(char *source, char *buf)
            #else
                raw("SQUIT %s :leaving: %s used the Shutdown command.", servername, source);
            #endif
+           shuttingdown = true;
        }
     } else if (stricmp(cmd, "SAVE") == 0) {
        aClient *user;