diff options
author | B00mX0r <b00mx0r@aureus.pw> | 2017-12-19 14:15:30 -0800 |
---|---|---|
committer | B00mX0r <b00mx0r@aureus.pw> | 2017-12-22 00:35:09 -0800 |
commit | 026c579e4cac7d4545b3c8c3a0d690c8509dc713 (patch) | |
tree | d92941491ef510a9ec8ff317a9002429ae96a33e /src/coremods/core_channel/cmd_topic.cpp | |
parent | e467fd0a6fc9ba97b2e2f31e654803a86bbb307f (diff) |
Fixed misc. instances of ERR_NOSUCHNICK instead of channel numerics
Per #1122
Diffstat (limited to 'src/coremods/core_channel/cmd_topic.cpp')
-rw-r--r-- | src/coremods/core_channel/cmd_topic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coremods/core_channel/cmd_topic.cpp b/src/coremods/core_channel/cmd_topic.cpp index 835ac82ed..fe913225e 100644 --- a/src/coremods/core_channel/cmd_topic.cpp +++ b/src/coremods/core_channel/cmd_topic.cpp @@ -38,7 +38,7 @@ CmdResult CommandTopic::HandleLocal(const std::vector<std::string>& parameters, Channel* c = ServerInstance->FindChan(parameters[0]); if (!c) { - user->WriteNumeric(Numerics::NoSuchNick(parameters[0])); + user->WriteNumeric(Numerics::NoSuchChannel(parameters[0])); return CMD_FAILURE; } @@ -46,7 +46,7 @@ CmdResult CommandTopic::HandleLocal(const std::vector<std::string>& parameters, { if ((c->IsModeSet(secretmode)) && (!c->HasUser(user))) { - user->WriteNumeric(Numerics::NoSuchNick(c->name)); + user->WriteNumeric(Numerics::NoSuchChannel(c->name)); return CMD_FAILURE; } |