Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 4476:62c1e5e656d0
[gaim-migrate @ 4751]
gaim_conversation_new() now takes an aim_user parameter. This should fix
the new placement grouping bugs, as the default "user" (account)
selected was the first account in the list of connections. There may be
side-effects, especially with perl plugins, but I'm not sure. Please report
anything odd that you see as a result of this.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 30 Jan 2003 18:45:50 +0000 |
parents | a46c57f2d58b |
children | 53723b58fe15 |
comparison
equal
deleted
inserted
replaced
4475:1f3241831734 | 4476:62c1e5e656d0 |
---|---|
1508 } | 1508 } |
1509 | 1509 |
1510 dim->conn->fd = source; | 1510 dim->conn->fd = source; |
1511 aim_conn_completeconnect(od->sess, dim->conn); | 1511 aim_conn_completeconnect(od->sess, dim->conn); |
1512 if (!(cnv = gaim_find_conversation(dim->name))) | 1512 if (!(cnv = gaim_find_conversation(dim->name))) |
1513 cnv = gaim_conversation_new(GAIM_CONV_IM, dim->name); | 1513 cnv = gaim_conversation_new(GAIM_CONV_IM, dim->gc->user, dim->name); |
1514 | 1514 |
1515 /* This is the best way to see if we're connected or not */ | 1515 /* This is the best way to see if we're connected or not */ |
1516 if (getpeername(source, &name, &name_len) == 0) { | 1516 if (getpeername(source, &name, &name_len) == 0) { |
1517 g_snprintf(buf, sizeof buf, _("Direct IM with %s established"), dim->name); | 1517 g_snprintf(buf, sizeof buf, _("Direct IM with %s established"), dim->name); |
1518 dim->connected = TRUE; | 1518 dim->connected = TRUE; |
4756 | 4756 |
4757 debug_printf("DirectIM: initiate success to %s\n", sn); | 4757 debug_printf("DirectIM: initiate success to %s\n", sn); |
4758 dim = find_direct_im(od, sn); | 4758 dim = find_direct_im(od, sn); |
4759 | 4759 |
4760 if (!(cnv = gaim_find_conversation(sn))) | 4760 if (!(cnv = gaim_find_conversation(sn))) |
4761 cnv = gaim_conversation_new(GAIM_CONV_IM, sn); | 4761 cnv = gaim_conversation_new(GAIM_CONV_IM, dim->gc->user, sn); |
4762 gaim_input_remove(dim->watcher); | 4762 gaim_input_remove(dim->watcher); |
4763 dim->conn = newconn; | 4763 dim->conn = newconn; |
4764 dim->watcher = gaim_input_add(dim->conn->fd, GAIM_INPUT_READ, | 4764 dim->watcher = gaim_input_add(dim->conn->fd, GAIM_INPUT_READ, |
4765 oscar_callback, dim->conn); | 4765 oscar_callback, dim->conn); |
4766 dim->connected = TRUE; | 4766 dim->connected = TRUE; |