Don't open a new buffer on NOTICE

This commit is contained in:
Simon Ser 2021-06-10 12:07:17 +02:00
parent dd8eca1cfe
commit 02800dd21b

View File

@ -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) {