summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-07-06 22:06:07 -0400
committerAdam <Adam@anope.org>2011-08-09 17:24:02 -0400
commit7c06078cf1674e8ef8ea47ad113ec6d8cc0adb2e (patch)
tree8039b5a12e32987da7bb975589283e4e49fb40cf /modules
parent205eb1ce22eacafbab46429798db21e4e0e2eeba (diff)
Do not send news when a server is syncing
Diffstat (limited to 'modules')
-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);
}