Mercurial > pidgin.yaz
changeset 1989:21c595ef11c8
[gaim-migrate @ 1999]
there, part one.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 11 Jun 2001 20:39:05 +0000 |
parents | 2bb74a5a574f |
children | 7712a8c13b55 |
files | plugins/msn/msn.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/msn/msn.c Mon Jun 11 17:55:40 2001 +0000 +++ b/plugins/msn/msn.c Mon Jun 11 20:39:05 2001 +0000 @@ -290,7 +290,7 @@ while (m) { struct msn_switchboard *ms = m->data; m = m->next; - if (ms->total == 1 && !g_strcasecmp(ms->user, id)) + if (!g_strcasecmp(ms->user, id)) return ms; } @@ -690,7 +690,7 @@ } else if (!g_strncasecmp(buf, "REM", 3)) { } else if (!g_strncasecmp(buf, "RNG", 3)) { struct msn_switchboard *ms; - char *sessid, *ssaddr, *auth; + char *sessid, *ssaddr, *auth, *user; int port, i = 0; char *tmp = buf; @@ -706,6 +706,9 @@ auth = tmp; GET_NEXT(tmp); + user = tmp; + + GET_NEXT(tmp); while (ssaddr[i] && ssaddr[i] != ':') i++; if (ssaddr[i] == ':') { @@ -716,6 +719,7 @@ port = 1863; ms = g_new0(struct msn_switchboard, 1); + ms->user = g_strdup(user); ms->sessid = g_strdup(sessid); ms->auth = g_strdup(auth); ms->gc = gc;