]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/tcpclient.cpp
Finally got level.h/cpp compiling into the project... beginning to store
[irc/gameservirc.git] / gameserv / tcpclient.cpp
index 4832cad691cac04fe80650a3ea40fdf24bf03a68..0414d69c6d55b0f6a6f13f5f900a8354a0a28983 100644 (file)
@@ -274,7 +274,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
@@ -283,8 +283,11 @@ int main(int argc, char *argv[])
        {
            oldTime = currentTime;
            log("Saving to %s", playerdata);
+
            save_gs_dbase();
            saveNews(newsdata, todaysnews);
+           // Send notice to the channel of the update
+           notice(s_GameServ, c_Forest, "%S player data saved");
        }