Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server password with : dont work #69

Open
GoogleCodeExporter opened this issue Nov 10, 2015 · 0 comments
Open

Server password with : dont work #69

GoogleCodeExporter opened this issue Nov 10, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

<Ayukawa> Yeah, i thought maybe it might be breaking the password up, but
my C is beyond rusty, so trying to look through the code is essentially
pointless for me.
<Ayukawa> I could be completely off my rocker, again rusty with C.  But
irc_server.c starting at line 141 it looks like it's just taking everything
after the last ':' it finds as the password, instead of everything after
the 2nd ':'.  Dunno if that helps, or just makes me look like an idiot :)

 if (strchr(server, ':') != strrchr(server, ':')) {
    /* More than one :, second denotes password */
    char *pass;

    pass = strrchr(server, ':');
    *(pass++) = 0;

    if (strlen(pass))
      p->serverpassword = x_strdup(pass);
  }


Original issue reported on code.google.com by francois...@gtempaccount.com on 27 Mar 2009 at 4:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant