summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/os_news.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}