hirc

IRC client
Log | Files | Refs

commit 6d4126715afc2265dcf963c8f1b73711405a4564
parent a1bd2c8da69c457cb7b856991c481034db1e0845
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 27 Oct 2021 17:44:26 +0100

ui.c: select main_buf if server and channel are NULL in ui_select()

Diffstat:
Mui.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui.c b/ui.c @@ -306,6 +306,6 @@ void ui_select(struct Server *server, struct Channel *channel) { selected.channel = channel; selected.server = server; - selected.history = channel ? channel->history : server->history; - selected.name = channel ? channel->name : server->name; + selected.history = channel ? channel->history : server->history ? server->history : main_buf; + selected.name = channel ? channel->name : server->name ? server->name : "hirc"; }