diff options
| author | 2022-10-01 00:20:11 +0100 | |
|---|---|---|
| committer | 2022-10-01 02:00:48 +0100 | |
| commit | 04b4b81a0ab59ee048022eab63274360ea7a2322 (patch) | |
| tree | 59be163f934b94aa727a207ca7c48616876743fe /src/usermanager.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Inline the one use of ServerNoticeAll and rm the function.
Diffstat (limited to 'src/usermanager.cpp')
| -rw-r--r-- | src/usermanager.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
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 |
