Skip to content

Commit

Permalink
Merge pull request #117 from jkhsjdhjs/fix/nick_event_chanlist
Browse files Browse the repository at this point in the history
Fix chanlist in nick change events
  • Loading branch information
tadzik authored Jan 8, 2025
2 parents dd825ef + 2b671f6 commit 1a4e183
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/117.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix nick changes not being bridged to matrix.
5 changes: 2 additions & 3 deletions src/irc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,8 @@ export class Client extends (EventEmitter as unknown as new () => TypedEmitter<C

// finding what channels a user is in
this.state.chans.forEach((nickChannel, channame) => {
const chanUser = message.nick && nickChannel.users.get(message.nick);
if (message.nick && chanUser) {
nickChannel.users.set(message.args[0], chanUser);
if (message.nick && nickChannel.users.has(message.nick)) {
nickChannel.users.set(message.args[0], nickChannel.users.get(message.nick)!);
nickChannel.users.delete(message.nick);
channelsForNick.push(channame);
}
Expand Down

0 comments on commit 1a4e183

Please sign in to comment.