From 49e2df0307b41f76529f26da2fa26456c179cdb2 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 1 Mar 2016 16:15:59 +0100 Subject: Add User::WriteRemoteNotice() Sends a NOTICE from the local server to the user which can be local or remote --- src/users.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 11f103e9d..db5f8a74d 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -830,6 +830,16 @@ void User::WriteFrom(User *user, const char* text, ...) this->WriteFrom(user, textbuffer); } +void User::WriteRemoteNotice(const std::string& text) +{ + ServerInstance->PI->SendUserNotice(this, text); +} + +void LocalUser::WriteRemoteNotice(const std::string& text) +{ + WriteNotice(text); +} + namespace { class WriteCommonRawHandler : public User::ForEachNeighborHandler -- cgit v1.3.1-10-gc9f91