diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mode.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 9c608c37a..2089ad140 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -459,9 +459,16 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User *user, if (pcnt) { + TranslateType tt = mh->GetTranslateType(); + if (tt == TR_NICK) + { + User* u = ServerInstance->FindNick(parameter); + if (u) + parameter = u->nick; + } output_parameters << " " << parameter; LastParseParams.push_back(parameter); - LastParseTranslate.push_back(mh->GetTranslateType()); + LastParseTranslate.push_back(tt); } if ( (output_mode.length() + output_parameters.str().length() > 450) |