mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #1249 from ailin-nemui/dup-caps
fix multiple identical active caps
This commit is contained in:
commit
0ae27530d6
@ -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"))
|
||||||
|
Loading…
Reference in New Issue
Block a user