mirror of
https://github.com/anope/anope.git
synced 2026-06-30 12:46:37 +02:00
Do not send news when a server is syncing
This commit is contained in:
@@ -418,7 +418,7 @@ class OSNews : public Module
|
||||
|
||||
void OnUserConnect(dynamic_reference<User> &user, bool &)
|
||||
{
|
||||
if (!user)
|
||||
if (!user || !user->server->IsSynced())
|
||||
return;
|
||||
|
||||
DisplayNews(user, NEWS_LOGON);
|
||||
|
||||
Reference in New Issue
Block a user