X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=examples%2Fchatpp.cc;h=26ffde596cc864eddfa94740173d335c5fecf2b1;hb=92bae04187d9ecd7900b5a28154a2c046001a7f3;hp=113d9559757161d93642a77d748f34268c7cc2d3;hpb=80a9dcfd08bcd450f7be14207257713e1b027319;p=meshlink-tiny diff --git a/examples/chatpp.cc b/examples/chatpp.cc index 113d955..26ffde5 100644 --- a/examples/chatpp.cc +++ b/examples/chatpp.cc @@ -59,22 +59,6 @@ static void parse_command(meshlink::mesh *mesh, char *buf) { fprintf(stderr, "Could not restart MeshLink: %s\n", meshlink::strerror()); exit(1); } - } else if(!strcasecmp(buf, "kick")) { - if(!arg) { - fprintf(stderr, "/kick requires an argument!\n"); - return; - } - - meshlink::node *node = mesh->get_node(arg); - - if(!node) { - fprintf(stderr, "Error looking up '%s': %s\n", arg, meshlink::strerror()); - return; - } - - mesh->blacklist(node); - - printf("Node '%s' blacklisted.\n", arg); } else if(!strcasecmp(buf, "who")) { if(!arg) { nodes = mesh->get_all_nodes(nodes, &nnodes);