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/usermanager.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/usermanager.cpp') diff --git a/src/usermanager.cpp b/src/usermanager.cpp index da2fbc909..a2e3a4bb6 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -349,17 +349,6 @@ const UserManager::CloneCounts& UserManager::GetCloneCounts(User* user) const return zeroclonecounts; } -void UserManager::ServerNoticeAll(const char* text, ...) const -{ - std::string message; - VAFORMAT(message, text, text); - ClientProtocol::Messages::Privmsg msg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, ServerInstance->Config->GetServerName(), message, MSG_NOTICE); - ClientProtocol::Event msgevent(ServerInstance->GetRFCEvents().privmsg, msg); - - for (auto* user : GetLocalUsers()) - user->Send(msgevent); -} - /** * This function is called once a second from the mainloop. * It is intended to do background checking on all the users, e.g. do -- cgit v1.3.1-10-gc9f91