irc: Added alias handling for node announcements

Aliases seem to be popular among users wanting to show off their node,
so let's add them :-)
This commit is contained in:
Christian Decker
2016-10-28 16:40:27 +02:00
parent 94fd82dc81
commit f9a4af62e3
3 changed files with 13 additions and 3 deletions

View File

@@ -65,6 +65,7 @@ struct node *new_node(struct lightningd_state *dstate,
n->in = tal_arr(n, struct node_connection *, 0);
n->out = tal_arr(n, struct node_connection *, 0);
n->port = 0;
n->alias = NULL;
node_map_add(dstate->nodes, n);
tal_add_destructor(n, destroy_node);