invitation = meshlink_invite(mesh, arg);
if(!invitation) {
- fprintf(stderr, "Could not invite '%s': %s\n", arg, meshlink_errstr);
+ fprintf(stderr, "Could not invite '%s': %s\n", arg, mesh->errstr);
return;
}
}
if(!meshlink_join(mesh, arg))
- fprintf(stderr, "Could not join using invitation: %s\n", meshlink_errstr);
+ fprintf(stderr, "Could not join using invitation: %s\n", mesh->errstr);
else
fprintf(stderr, "Invitation accepted!\n");
} else if(!strcasecmp(buf, "kick")) {
}
if(!meshlink_send(mesh, destination, msg, strlen(msg) + 1)) {
- fprintf(stderr, "Could not send message to '%s': %s\n", destination->name, meshlink_errstr);
+ fprintf(stderr, "Could not send message to '%s': %s\n", destination->name, mesh->errstr);
return;
}
meshlink_handle_t *mesh = meshlink_open(confbase, nick);
if(!mesh) {
- fprintf(stderr, "Could not open MeshLink: %s\n", meshlink_errstr);
+ fprintf(stderr, "Could not open MeshLink: %s\n", mesh->errstr);
return 1;
}
meshlink_set_log_cb(mesh, MESHLINK_INFO, log);
if(!meshlink_start(mesh)) {
- fprintf(stderr, "Could not start MeshLink: %s\n", meshlink_errstr);
+ fprintf(stderr, "Could not start MeshLink: %s\n", mesh->errstr);
return 1;
}