From 4278265c65a9bdda281f15c6bc446459260a6e41 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 24 Aug 2021 14:46:51 +0200 Subject: [PATCH] Open new buffer on self-message Closes: https://todo.sr.ht/~emersion/gamja/96 --- components/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/app.js b/components/app.js index 025ca7e..67db6ba 100644 --- a/components/app.js +++ b/components/app.js @@ -456,7 +456,9 @@ export default class App extends Component { }); } - if (!client.isMyNick(msg.prefix.name) && (msg.command != "PART" && msg.comand != "QUIT")) { + // Open a new buffer if the message doesn't come from me or is a + // self-message + if ((!client.isMyNick(msg.prefix.name) || client.isMyNick(bufName)) && (msg.command != "PART" && msg.comand != "QUIT")) { this.createBuffer(serverID, bufName); }