1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

fix multiple identical active caps

This commit is contained in:
Ailin Nemui 2021-01-05 21:22:49 +01:00
parent a1cbb8d28f
commit 18a1a0ba7c

View File

@ -224,7 +224,7 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
if (disable) if (disable)
server->cap_active = gslist_delete_string(server->cap_active, caps[i] + 1, g_free); server->cap_active = gslist_delete_string(server->cap_active, caps[i] + 1, g_free);
else else if (!gslist_find_string(server->cap_active, caps[i]))
server->cap_active = g_slist_prepend(server->cap_active, g_strdup(caps[i])); server->cap_active = g_slist_prepend(server->cap_active, g_strdup(caps[i]));
if (!strcmp(caps[i], "sasl")) if (!strcmp(caps[i], "sasl"))