~aritra1911/mc_client

e0288590b4e5ed2fb3d09d801078312871d2e7bf — Aritra Sarkar 1 year, 9 months ago 0c9fbc1
Make  work even without a nick
1 files changed, 3 insertions(+), 1 deletions(-)

M main.c
M main.c => main.c +3 -1
@@ 377,8 377,8 @@ int main(int argc, char **argv)
     */
    int overwrite=0;

    (void) argc;
    set_defaults(&prefs);
    (void) argc;
    args_parsed = parse_prefs(argv, &prefs);

    if ( args_parsed < 0 )


@@ 449,6 449,8 @@ int main(int argc, char **argv)
                continue;
            }

            if ( !*nick && *buf == SND_QUIT ) break;

            /* Send it to the server */
            if ( send(sockfd, buf, numbytes, 0) == -1 ) {
                fprintf(stderr, "`send()`ing failed : %s", strerror(errno));