]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/gameserv.cpp
fixing news up
[irc/gameservirc.git] / gameserv / gameserv.cpp
index 7a6414a86a5133b8c4499361e18436c9b45cfe19..438ac1b8ac6a54f15ec251423f94840657f3fdb3 100644 (file)
@@ -168,6 +168,7 @@ void gameserv(char *source, char *buf)
     if (curday != day)
     {
         refreshall();
+       clearNews(todaysnews);
         day = curday;
        save_day(); // here i come to save the day!
     }
@@ -220,8 +221,7 @@ void gameserv(char *source, char *buf)
     } else if (stricmp(cmd, "LOGOUT") == 0) {
        do_logout(source);
     } else if (stricmp(cmd, "NEWS") == 0) {
-       addNews(todaysnews, "This is a test");
-       showNews(source, todaysnews);
+       do_news(source);
     } else if (stricmp(cmd, "REGISTER") == 0) {
        do_register(source);
     } else if (stricmp(cmd, "IDENTIFY") == 0) {