From d762264aa63654e345922e5e6b03b8b823681f8b Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 4 Apr 2004 18:35:21 +0000 Subject: [PATCH] Fix for mbsetup --- ChangeLog | 1 + mbsetup/m_node.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2f372a60..2d57e909 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,7 @@ v0.51.3 22-Mar-2003 The ~/doc/xref.doc and ~/doc/stat.doc are not created anymore, there was nothing in it yet. Removed setup for the unused free diskspace parameter. + In nodes edit aka's it was not possible to delete aka's. mbfido: The area tags are now created in /opt/mbse/share/doc/tags. diff --git a/mbsetup/m_node.c b/mbsetup/m_node.c index c3b20b99..c27be5ea 100644 --- a/mbsetup/m_node.c +++ b/mbsetup/m_node.c @@ -543,6 +543,7 @@ fidoaddr e_a(fidoaddr n, int x) mvprintw( 9, 6, "3. Node"); mvprintw(10, 6, "4. Point"); mvprintw(11, 6, " Domain"); + mvprintw(12, 6, "5. Delete"); set_color(WHITE, BLACK); show_int( 7,17, n.zone); show_int( 8,17, n.net); @@ -550,7 +551,7 @@ fidoaddr e_a(fidoaddr n, int x) show_int(10,17, n.point); show_str(11,17,12, n.domain); - switch(select_menu(4)) { + switch(select_menu(5)) { case 0: return n; case 1: n.zone = edit_int_range(7, 17, n.zone, 1, 4095, (char *)"The ^zone^ number 1..4095"); sprintf(temp, "%s/etc/fidonet.data", getenv("MBSE_ROOT")); @@ -573,6 +574,8 @@ fidoaddr e_a(fidoaddr n, int x) case 2: E_IRC( 8,17,n.net, 1, 32767, "The ^net^ number 1..32767") case 3: E_IRC( 9,17,n.node, 0, 32767, "The ^node^ number 0..32767") case 4: E_IRC(10,17,n.point, 0, 32767, "The ^point^ number 0..32767") + case 5: memset(&n, 0, sizeof(n)); + break; } } }