mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
Merge pull request #843 from ailin-nemui/glib238
restore compat with glib <2.40
This commit is contained in:
commit
946876b1e9
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue