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. --- modules/setname.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'modules/setname.cpp') diff --git a/modules/setname.cpp b/modules/setname.cpp index 442bd0315..a0e1ab572 100644 --- a/modules/setname.cpp +++ b/modules/setname.cpp @@ -24,22 +24,17 @@ #include "inspircd.h" #include "modules/ircv3.h" -#include "modules/ircv3_replies.h" #include "modules/monitor.h" class CommandSetName final : public SplitCommand { -private: - IRCv3::Replies::Fail fail; - public: Cap::Capability cap; bool notifyopers; CommandSetName(Module* Creator) : SplitCommand(Creator, "SETNAME", 1, 1) - , fail(Creator) , cap(Creator, "setname") { syntax = { ":" }; @@ -49,7 +44,7 @@ public: { if (parameters[0].size() > ServerInstance->Config->Limits.MaxReal) { - fail.SendIfCap(user, &cap, this, "INVALID_REALNAME", "Real name is too long"); + IRCv3::WriteReply(Reply::Type::FAIL, user, &cap, this, "INVALID_REALNAME", "Real name is too long"); return CmdResult::FAILURE; } -- cgit v1.3.1-10-gc9f91