From a1d25d2c14161d5eb466c14c936688fcc36a5a2f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 1 Mar 2026 01:28:41 +0000 Subject: Move standard replies to the core and add remote reply support. --- src/users.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/users.cpp') 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 -- cgit v1.3.1-10-gc9f91