From 5fcbfa446cba13023e2c0c3665962ecd28e15dc4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 10 Jun 2021 09:25:17 +0200 Subject: [PATCH] Use server buffer if name is unspecified in State.getBuffer --- state.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/state.js b/state.js index 4ac1777..60b13c5 100644 --- a/state.js +++ b/state.js @@ -187,6 +187,9 @@ export const State = { if (!serverID) { serverID = State.getActiveServerID(state); } + if (!name) { + name = SERVER_BUFFER; + } var cm = irc.CaseMapping.RFC1459; var server = state.servers.get(serverID);