fix mnettoftn

This commit is contained in:
Andrew Pamment 2018-05-30 14:24:04 +10:00
parent 852da190e2
commit 17eba8a48f
2 changed files with 8 additions and 1 deletions

@ -1 +1 @@
Subproject commit 864d1078a4980f1a791998b154411bbe4128d9ee
Subproject commit fc8b2b372db8fc1e0fd257843ce4d14d6813adf4

View File

@ -410,6 +410,9 @@ int import(char *filename) {
}
return 1;
} else {
areaid = -1;
for (i=0;i<area_count;i++) {
if (msg.area == areas[i]->id) {
areaid = i;
@ -417,6 +420,10 @@ int import(char *filename) {
}
}
if (areaid == -1) {
return 1;
}
if (areas[areaid]->hub == mynode) {
if (msg.type == 1) {
if (strncasecmp(body, "ADD", 3) == 0) {