diff options
| author | 2026-03-01 01:28:41 +0000 | |
|---|---|---|
| committer | 2026-03-01 01:28:41 +0000 | |
| commit | a1d25d2c14161d5eb466c14c936688fcc36a5a2f (patch) | |
| tree | 7986cc6967168923600913e6961d31ad698969be /modules/setname.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 'modules/setname.cpp')
| -rw-r--r-- | modules/setname.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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 = { ":<realname>" }; @@ -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; } |
