Skip to content

Commit

Permalink
src/irc/BridgedClient.ts: replace "M" letter prefix with "`" when nick
Browse files Browse the repository at this point in the history
starts with an invalid character

Looks more natural to IRC users. IRC users usually add an underscore at
the beginning or a "`".

With that, "M24Hacker[m]" becomes "`24Hacker[m]"

Signed-off-by: Ferass El Hafidi <[email protected]>
  • Loading branch information
Ferass El Hafidi authored and tadzik committed Sep 12, 2024
1 parent a9660fb commit 51ecb5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/irc/BridgedClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,9 @@ export class BridgedClient extends EventEmitter {
`Nick '${nick}' must start with a letter or special character (dash is not a special character).`
);
}
// Add arbitrary letter prefix. This is important for guest user
// Add arbitrary prefix. This is important for guest user
// IDs which are all numbers.
n = "M" + n;
n = "`" + n;
}

if (state.status === BridgedClientStatus.CONNECTED) {
Expand Down

0 comments on commit 51ecb5c

Please sign in to comment.