From 09843c2e4cf6495f80e6c5641683c4aa5e75913e Mon Sep 17 00:00:00 2001 From: Lemuria <74448738+a-random-lemurian@users.noreply.github.com> Date: Thu, 30 Nov 2023 03:35:19 +0800 Subject: [PATCH] Fix part() not processing channel name --- lib/Client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Client.js b/lib/Client.js index 984564d..7b49d77 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -130,6 +130,7 @@ class Client extends ClientBase { }); } part(channel) { + channel = _.channel() return this._sendCommand({ delay: null, channel: null, command: `PART ${channel}` }, (res, rej) => this.once('_promisePart', err => !err ? res([ _.channel(channel) ]) : rej(err)) );