diff options
| author | 2026-03-01 01:28:41 +0000 | |
|---|---|---|
| committer | 2026-03-01 01:28:41 +0000 | |
| commit | a1d25d2c14161d5eb466c14c936688fcc36a5a2f (patch) | |
| tree | 7986cc6967168923600913e6961d31ad698969be /src/users.cpp | |
| parent | Fix swhois sending a NOTE when it should send a FAIL. (diff) | |
Move standard replies to the core and add remote reply support.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index 98001fb94..0d0de8073 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -675,11 +675,26 @@ void User::WriteNumeric(const Numeric::Numeric& numeric) localuser->Send(ServerInstance->GetRFCEvents().numeric, numericmsg); } +void User::WriteReply(const Reply::Reply& reply) +{ + auto* lthis = IS_LOCAL(this); + if (!IS_LOCAL(this)) + return; + + ClientProtocol::Messages::Reply replymsg(reply); + lthis->Send(ServerInstance->GetRFCEvents().reply, replymsg); +} + void User::WriteRemoteNotice(const std::string& text) { WriteNotice(text); } +void User::WriteRemoteReply(const Reply::Reply& reply) +{ + WriteReply(reply); +} + namespace { class WriteCommonRawHandler final |
