]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/tcpclient.cpp
removed the annoying player data saved msg unless in debugmode
[irc/gameservirc.git] / gameserv / tcpclient.cpp
index fad1b2abb8e891d8ef9ca169fcb751d1e8ea9e5f..fdeff2d083e4b3d062f9a401d08e199c9ed50c1b 100644 (file)
@@ -35,7 +35,7 @@ using std::cerr;
 using std::endl;
 
 char *PACKAGE = "GameServ";
-char *VERSION = "1.2.3 +devel";
+char *VERSION = "1.2.4 +devel";
 
 int sock;
 long lastrefresh;
@@ -108,7 +108,16 @@ int main(int argc, char *argv[])
   loadNews(newsdata, todaysnews);
 
   if (load_monsters() == false)
+  {
+       log("Error loading monsters");
+       goto end;
+  }
+
+  if (load_levels() == false)
+  {
+       log("Error loading levels");
        goto end;
+  }
 
     shuttingdown = false;
 
@@ -274,7 +283,7 @@ int main(int argc, char *argv[])
            lastrefresh = currentTime;
            save_lastrefresh();
            notice(s_GameServ, c_Forest, "Refreshing all players "\
-                       "and resetting news! %ld", refreshperiod);
+                       "and resetting news!");
        }
 
        // Save the player data every updateperiod seconds
@@ -287,7 +296,9 @@ int main(int argc, char *argv[])
            save_gs_dbase();
            saveNews(newsdata, todaysnews);
            // Send notice to the channel of the update
-           notice(s_GameServ, c_Forest, "%S player data saved");
+           #ifdef DEBUGMODE
+               notice(s_GameServ, c_Forest, "%S player data saved");
+           #endif
        }