* repeater CLI: 'neighbors' command now responds with "-none-" if no neighbors
This commit is contained in:
1 parent
1a36f98cd3
commit
d759d62915
1 file changed
+3
@@ -666,6 +666,9 @@ public:
|
|||||||
while (*dp) dp++; // find end of string
|
while (*dp) dp++; // find end of string
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if (dp == reply) { // no neighbours, need empty response
|
||||||
|
strcpy(dp, "-none-"); dp += 6;
|
||||||
|
}
|
||||||
*dp = 0; // null terminator
|
*dp = 0; // null terminator
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user