hirc

IRC client
Log | Files | Refs

commit ab01fec2ac5af48709dbbde844077d7e4ef5eae7
parent 7efc14207138adacd6f60a898cf913c5801dd0c8
Author: hhvn <dev@hhvn.uk>
Date:   Mon, 19 Sep 2022 12:50:57 +0100

Fix segfault on /mode while a channel is not selected

Diffstat:
Msrc/commands.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/commands.c b/src/commands.c @@ -333,7 +333,7 @@ command_mode) { } if (modes) { - if (chan == channel->name) + if (channel && chan == channel->name) expect_set(server, Expect_nosuchnick, chan); serv_write(server, Sched_connected, "MODE %s %s\r\n", chan, modes); } else {