From 04b4b81a0ab59ee048022eab63274360ea7a2322 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 1 Oct 2022 00:20:11 +0100 Subject: Inline the one use of ServerNoticeAll and rm the function. --- src/configreader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index d15005804..9afefcc7c 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -656,7 +656,10 @@ void ConfigReaderThread::OnStop() } if (Config->RawLog && !old->RawLog) - ServerInstance->Users.ServerNoticeAll("*** Raw I/O logging is enabled on this server. All messages, passwords, and commands are being recorded."); + { + for (auto* luser : ServerInstance->Users.GetLocalUsers()) + luser->WriteNotice("*** Raw I/O logging is enabled on this server. All messages, passwords, and commands are being recorded."); + } Config = old; } -- cgit v1.3.1-10-gc9f91