diff options
| author | 2023-01-25 00:59:12 +0000 | |
|---|---|---|
| committer | 2023-01-25 01:04:55 +0000 | |
| commit | ec02f2a47d5523230188cafb09cb50faa255ede1 (patch) | |
| tree | 7a3a5d54492951cfe35268aa3a3ffa32de2e4d2b /src/modules/m_nicklock.cpp | |
| parent | Replace getInt/getUInt/getFloat with type safe templated functions. (diff) | |
| parent | Work around a bug in reading the config for the Argon2 module. (diff) | |
| download | inspircd++-ec02f2a47d5523230188cafb09cb50faa255ede1.tar.gz inspircd++-ec02f2a47d5523230188cafb09cb50faa255ede1.tar.bz2 inspircd++-ec02f2a47d5523230188cafb09cb50faa255ede1.zip | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_nicklock.cpp')
| -rw-r--r-- | src/modules/m_nicklock.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp index d73801031..26feb2d8e 100644 --- a/src/modules/m_nicklock.cpp +++ b/src/modules/m_nicklock.cpp @@ -25,6 +25,7 @@ #include "inspircd.h" #include "extension.h" +#include "numerichelper.h" enum { @@ -53,7 +54,7 @@ public: auto* target = ServerInstance->Users.Find(parameters[0], true); if (!target) { - user->WriteNotice("*** No such nickname: '" + parameters[0] + "'"); + user->WriteNumeric(Numerics::NoSuchNick(parameters[0])); return CmdResult::FAILURE; } @@ -113,7 +114,7 @@ public: if (!target) { - user->WriteNotice("*** No such nickname: '" + parameters[0] + "'"); + user->WriteNumeric(Numerics::NoSuchNick(parameters[0])); return CmdResult::FAILURE; } |
