diff options
author | Adam <Adam@anope.org> | 2011-07-06 22:06:07 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-09 17:24:02 -0400 |
commit | 7c06078cf1674e8ef8ea47ad113ec6d8cc0adb2e (patch) | |
tree | 8039b5a12e32987da7bb975589283e4e49fb40cf /modules | |
parent | 205eb1ce22eacafbab46429798db21e4e0e2eeba (diff) |
Do not send news when a server is syncing
Diffstat (limited to 'modules')
-rw-r--r-- | modules/core/os_news.cpp | 2 |
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); } |