Skip to content

Commit

Permalink
Fix nickname in nick in use translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsOnlyBinary committed Sep 23, 2024
1 parent 580e775 commit 78ecf4b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/libs/IrcClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -911,10 +911,9 @@ function clientMiddleware(state, network) {
let newNick = client.user.nick.replace(/\d+$/, '') + rand(1, 99);

let translationKey = shouldChangeNick ? 'nick_in_use_retrying' : 'error_nick_in_use';
let translationVars = { nick: client.user.nick };
if (shouldChangeNick) {
translationVars.newnick = newNick;
}
let translationVars = shouldChangeNick
? { nick: client.user.nick, newnick: newNick }
: { nick: event.nick };

let messageBody = TextFormatting.formatAndT(
'nickname_alreadyinuse',
Expand Down

0 comments on commit 78ecf4b

Please sign in to comment.