aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-01 01:28:41 +0000
committerGravatar Sadie Powell2026-03-01 01:28:41 +0000
commita1d25d2c14161d5eb466c14c936688fcc36a5a2f (patch)
tree7986cc6967168923600913e6961d31ad698969be /src/users.cpp
parentFix 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.cpp15
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