1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

remove stuff from isupport always before inserting.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3225 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2004-02-07 00:03:56 +00:00 committed by cras
parent b538b3bfe8
commit f2e9b8b395

View File

@ -614,6 +614,9 @@ static void event_isupport(IRC_SERVER_REC *server, const char *data)
for(item = isupport; *item != NULL; item++) {
int removed = FALSE;
if (**item == '\0')
continue;
if (**item == ':')
break;
@ -634,9 +637,8 @@ static void event_isupport(IRC_SERVER_REC *server, const char *data)
&key, &value) && removed)
continue;
if (removed)
g_hash_table_remove(server->isupport, eptr);
else {
g_hash_table_remove(server->isupport, eptr);
if (!removed) {
g_hash_table_insert(server->isupport, g_strdup(eptr),
g_strdup(sptr != NULL ? sptr : ""));
}