diff options
| author | 2016-03-01 16:15:59 +0100 | |
|---|---|---|
| committer | 2016-03-01 16:15:59 +0100 | |
| commit | 49e2df0307b41f76529f26da2fa26456c179cdb2 (patch) | |
| tree | e292eb2212af06c8d7b7880b2607efd82489bc00 /src | |
| parent | Merge branch 'master+writenumeric-who' (diff) | |
Add User::WriteRemoteNotice()
Sends a NOTICE from the local server to the user which can be local or remote
Diffstat (limited to 'src')
| -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 |
