hirc

IRC client
Log | Files | Refs

commit 2007e06b5b9df50e8f86407750b38d3863ffed46
parent c890c621cd162cb61058ad4f94b32b4b624b1cc5
Author: hhvn <dev@hhvn.uk>
Date:   Thu, 28 Oct 2021 17:31:40 +0100

nick.c: sanity check on nick_sort

Diffstat:
Mnick.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/nick.c b/nick.c @@ -263,6 +263,9 @@ nick_sort(struct Nick **head, struct Server *server) { ['0'] = S_0, S_1, S_2, S_3, S_4, S_5, S_6, S_7, S_8, S_9, }; + if (!head || !*head) + return; + /* supportedprivs = strchr(support_get(server, "PREFIX"), ')'); if (supportedprivs == NULL || supportedprivs[0] == '\0')