forked from PsychoticNinja/irssi
Merge pull request #843 from ailin-nemui/glib238
restore compat with glib <2.40
This commit is contained in:
commit
946876b1e9
@ -158,11 +158,12 @@ static void event_cap (IRC_SERVER_REC *server, char *args, char *nick, char *add
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_hash_table_insert(server->cap_supported, key, val)) {
|
if (g_hash_table_lookup_extended(server->cap_supported, key, NULL, NULL)) {
|
||||||
/* The specification doesn't say anything about
|
/* The specification doesn't say anything about
|
||||||
* duplicated values, let's just warn the user */
|
* duplicated values, let's just warn the user */
|
||||||
g_warning("The server sent the %s capability twice", key);
|
g_warning("The server sent the %s capability twice", key);
|
||||||
}
|
}
|
||||||
|
g_hash_table_insert(server->cap_supported, key, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A multiline response is always terminated by a normal one,
|
/* A multiline response is always terminated by a normal one,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user