diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-28 19:06:48 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-28 19:06:48 +0200 |
commit | eac442a855dfe2299eeac11d0a3a3c47d7853695 (patch) | |
tree | e0de04a603a22479f10bc928de8f3d95f0319bb1 | |
parent | f1fa143b21eaa5b4669c32513b2a66ad22a1e04c (diff) | |
download | weechat-eac442a855dfe2299eeac11d0a3a3c47d7853695.zip |
core: remove unnecessary condition in function gui_nicklist_get_group_start
-rw-r--r-- | src/gui/gui-nicklist.c | 7 |
1 files 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; } /* |