Skip to content

Commit 887cacd

Browse files
committed
Make sure we don't lose PART reasons
1 parent 37cb805 commit 887cacd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/irc.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1564,6 +1564,8 @@ export class Client extends (EventEmitter as unknown as new () => TypedEmitter<C
15641564
if (typeof messageOrCallback === 'function') {
15651565
callback = messageOrCallback;
15661566
message = undefined;
1567+
} else {
1568+
message = messageOrCallback;
15671569
}
15681570
if (typeof (callback) === 'function') {
15691571
this.once('part' + channel as PartEventIndex, callback);

0 commit comments

Comments
 (0)