mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
Merge pull request #1095 from ailin-nemui/cap-queue
fix cap queue order
This commit is contained in:
commit
0a12bf682d
1 changed files with 3 additions and 0 deletions
|
|
@ -184,6 +184,9 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
|
||||||
|
|
||||||
avail_caps = 0;
|
avail_caps = 0;
|
||||||
|
|
||||||
|
/* To process the queue in order, we need to reverse the stack once */
|
||||||
|
server->cap_queue = g_slist_reverse(server->cap_queue);
|
||||||
|
|
||||||
/* Check whether the cap is supported by the server */
|
/* Check whether the cap is supported by the server */
|
||||||
for (tmp = server->cap_queue; tmp != NULL; tmp = tmp->next) {
|
for (tmp = server->cap_queue; tmp != NULL; tmp = tmp->next) {
|
||||||
if (g_hash_table_lookup_extended(server->cap_supported, tmp->data, NULL, NULL)) {
|
if (g_hash_table_lookup_extended(server->cap_supported, tmp->data, NULL, NULL)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue