]> git.meshlink.io Git - meshlink/blobdiff - examples/chat.c
manynodes example: committed /test command to test if it is possible to succefully...
[meshlink] / examples / chat.c
index 1a3343288a6c7699ada71e27da5cb4260462828c..ddb43bf7c477aa6eee66718e37d8208ea539de14 100644 (file)
@@ -63,7 +63,7 @@ static void parse_command(meshlink_handle_t *mesh, char *buf) {
                        fprintf(stderr, "Invitation accepted!\n");
                        if(!meshlink_start(mesh)) {
                                fprintf(stderr, "Could not start MeshLink: %s\n", meshlink_strerror(meshlink_errno));
-                       return 1;
+                       return;
                        }
                }
        } else if(!strcasecmp(buf, "kick")) {
@@ -187,7 +187,7 @@ int main(int argc, char *argv[]) {
        if(argc > 2)
                nick = argv[2];
 
-       meshlink_handle_t *mesh = meshlink_open(confbase, nick);
+       meshlink_handle_t *mesh = meshlink_open(confbase, nick, "chat");
        if(!mesh) {
                fprintf(stderr, "Could not open MeshLink: %s\n", meshlink_strerror(meshlink_errno));
                return 1;