diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-03-01 16:15:59 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-03-01 16:15:59 +0100 |
commit | 49e2df0307b41f76529f26da2fa26456c179cdb2 (patch) | |
tree | e292eb2212af06c8d7b7880b2607efd82489bc00 /src/users.cpp | |
parent | 4f1005acd1e97a6dac8182f80a0ccf453376ba67 (diff) |
Add User::WriteRemoteNotice()
Sends a NOTICE from the local server to the user which can be local or remote
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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 |