From eac442a855dfe2299eeac11d0a3a3c47d7853695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 28 Apr 2024 19:06:48 +0200 Subject: [PATCH] core: remove unnecessary condition in function gui_nicklist_get_group_start --- src/gui/gui-nicklist.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gui/gui-nicklist.c b/src/gui/gui-nicklist.c index 2432cb049..337ea3f60 100644 --- a/src/gui/gui-nicklist.c +++ b/src/gui/gui-nicklist.c @@ -809,14 +809,11 @@ gui_nicklist_get_group_start (const char *name) ptr_name = name; while (isdigit ((unsigned char)ptr_name[0])) { - if (ptr_name[0] == '|') - break; ptr_name++; } - if ((ptr_name[0] == '|') && (ptr_name != name)) + if ((ptr_name > name) && (ptr_name[0] == '|')) return ptr_name + 1; - else - return name; + return name; } /*