diff options
| author | 2021-04-27 10:19:35 +0100 | |
|---|---|---|
| committer | 2021-04-27 10:37:04 +0100 | |
| commit | 8526836cf598b49de6fe8e1cef7a169d3de481f8 (patch) | |
| tree | f9ae452b867f69c6e09913db2dd84ae3fdaba7e3 /src/mode.cpp | |
| parent | Use parameter pack expansion instead of recursive calls. (diff) | |
| parent | Fix SendNoticeInternal not having a NULL command variant. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/mode.cpp')
| -rw-r--r-- | src/mode.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index e68849e66..eb00f4fec 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -369,7 +369,9 @@ void ModeParser::ModeParamsToChangeList(User* user, ModeType type, const std::ve if (!mh) { /* No mode handler? Unknown mode character then. */ - user->WriteNumeric(type == MODETYPE_CHANNEL ? ERR_UNKNOWNMODE : ERR_UNKNOWNSNOMASK, modechar, "is an unknown mode character"); + int numeric = (type == MODETYPE_CHANNEL ? ERR_UNKNOWNMODE : ERR_UNKNOWNSNOMASK); + const char* typestr = (type == MODETYPE_CHANNEL ? "channel" : "user"); + user->WriteNumeric(numeric, modechar, InspIRCd::Format("is not a recognised %s mode.", typestr)); continue; } |
