From 7c06078cf1674e8ef8ea47ad113ec6d8cc0adb2e Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 6 Jul 2011 22:06:07 -0400 Subject: [PATCH] Do not send news when a server is syncing --- modules/core/os_news.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/core/os_news.cpp b/modules/core/os_news.cpp index f67a2a9ca..ada1d9fe1 100644 --- a/modules/core/os_news.cpp +++ b/modules/core/os_news.cpp @@ -429,6 +429,8 @@ class OSNews : public Module void OnUserConnect(User *u) { + if (!u || !u->server->IsSynced()) + return; DisplayNews(u, NEWS_LOGON); DisplayNews(u, NEWS_RANDOM); }