From 02800dd21b9d4c6b5d3d302a40c96cbe4111eb5a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 10 Jun 2021 12:07:17 +0200 Subject: [PATCH] Don't open a new buffer on NOTICE --- components/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/app.js b/components/app.js index 91b0496..fbe0b83 100644 --- a/components/app.js +++ b/components/app.js @@ -530,6 +530,10 @@ export default class App extends Component { target = msg.prefix.name; } } + if (msg.command === "NOTICE" && !State.getBuffer(this.state, { server: serverID, name: target })) { + // Don't open a new buffer if this is just a NOTICE + target = SERVER_BUFFER; + } var allowedPrefixes = client.isupport.get("STATUSMSG"); if (allowedPrefixes) {