X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=examples%2Fchat.c;h=2dc13be1fdb54ce4f5a90a8cfd76b3eb33ccbbc7;hb=c31f626c3a252a0d6805a5f3ca9154d934ea41f5;hp=88fe127a1df25368512078c89868a0dddc2336c6;hpb=58e30fc23646284ee535456d5a467f1fbf18af4e;p=meshlink diff --git a/examples/chat.c b/examples/chat.c index 88fe127a..2dc13be1 100644 --- a/examples/chat.c +++ b/examples/chat.c @@ -86,6 +86,8 @@ static void parse_command(meshlink_handle_t *mesh, char *buf) { fprintf(stderr, "Could not restart MeshLink: %s\n", meshlink_strerror(meshlink_errno)); exit(1); } + } else if(!strcasecmp(buf, "scan")) { + meshlink_hint_network_change(mesh); } else if(!strcasecmp(buf, "kick")) { if(!arg) { fprintf(stderr, "/kick requires an argument!\n");