Let ADD still work as modify

This commit is contained in:
Jari Matilainen 2016-06-18 18:02:04 +02:00
commit 79e30405e6
3 changed files with 3 additions and 3 deletions

View file

@ -112,7 +112,7 @@ static void cmd_network_add_modify(const char *data, gboolean add)
rec = g_new0(IRC_CHATNET_REC, 1);
rec->name = g_strdup(name);
} else if (!add) {
} else {
if (g_hash_table_lookup(optlist, "nick")) g_free_and_null(rec->nick);
if (g_hash_table_lookup(optlist, "user")) g_free_and_null(rec->username);
if (g_hash_table_lookup(optlist, "realname")) g_free_and_null(rec->realname);