Reduced aka match check for areas (dis)connect

This commit is contained in:
Michiel Broek
2002-03-02 16:10:54 +00:00
parent bcbed5d356
commit 3337479238
3 changed files with 7 additions and 4 deletions

View File

@@ -668,7 +668,7 @@ void A_Disconnect(faddr *t, char *Area, FILE *tmp)
i = metric(b, fido2faddr(mgroup.UseAka));
Syslog('m', "Aka match level is %d", i);
if (i > METRIC_POINT) {
if (i >= METRIC_NET) {
fprintf(tmp, "You may not disconnect area %s with nodenumber %s\n", Area, ascfnode(t, 0x1f));
Syslog('+', " %s may not disconnect from group %s", ascfnode(t, 0x1f), mgroup.Name);
return;
@@ -748,7 +748,7 @@ void A_Connect(faddr *t, char *Area, FILE *tmp)
i = metric(b, fido2faddr(mgroup.UseAka));
Syslog('m', "Aka match level is %d", i);
if (i > METRIC_POINT) {
if (i >= METRIC_NET) {
fprintf(tmp, "You may not connect area %s with nodenumber %s\n", Area, ascfnode(t, 0x1f));
Syslog('+', " %s may not connect to group %s", ascfnode(t, 0x1f), mgroup.Name);
return;

View File

@@ -550,7 +550,7 @@ void F_Disconnect(faddr *t, char *Area, FILE *tmp)
i = metric(b, fido2faddr(fgroup.UseAka));
Syslog('m', "Aka match level is %d", i);
if (i > METRIC_POINT) {
if (i >= METRIC_NET) {
fprintf(tmp, "You may not disconnect area %s with nodenumber %s\n", Area, ascfnode(t, 0x1f));
Syslog('+', " %s may not disconnect from group %s", ascfnode(t, 0x1f), fgroup.Name);
return;
@@ -630,7 +630,7 @@ void F_Connect(faddr *t, char *Area, FILE *tmp)
i = metric(b, fido2faddr(fgroup.UseAka));
Syslog('m', "Aka match level is %d", i);
if (i > METRIC_POINT) {
if (i >= METRIC_NET) {
fprintf(tmp, "You may not connect area %s with nodenumber %s\n", Area, ascfnode(t, 0x1f));
Syslog('+', " Node %s may not connect to group %s", ascfnode(t, 0x1f), fgroup.Name);
return;