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

@ -138,7 +138,7 @@ static void cmd_server_add_modify(const char *data, gboolean add)
}
rec->address = g_strdup(addr);
rec->port = port;
} else if (!add) {
} else {
value = g_hash_table_lookup(optlist, "port");
if (value != NULL && *value != '\0') rec->port = atoi(value);