]> git.meshlink.io Git - meshlink-tiny/blobdiff - examples/chatpp.cc
Fix building the example programs.
[meshlink-tiny] / examples / chatpp.cc
index 113d9559757161d93642a77d748f34268c7cc2d3..26ffde596cc864eddfa94740173d335c5fecf2b1 100644 (file)
@@ -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);