Mercurial > pidgin
comparison src/perl.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 | 25c2119deab3 |
| children | 3196d9044a45 |
comparison
equal
deleted
inserted
replaced
| 4475:1f3241831734 | 4476:62c1e5e656d0 |
|---|---|
| 779 case 0: wflags=WFLAG_SEND; break; | 779 case 0: wflags=WFLAG_SEND; break; |
| 780 case 1: wflags=WFLAG_RECV; break; | 780 case 1: wflags=WFLAG_RECV; break; |
| 781 case 2: wflags=WFLAG_SYSTEM; break; | 781 case 2: wflags=WFLAG_SYSTEM; break; |
| 782 default: wflags=WFLAG_RECV; | 782 default: wflags=WFLAG_RECV; |
| 783 } | 783 } |
| 784 | 784 |
| 785 c = gaim_find_conversation(nick); | 785 c = gaim_find_conversation(nick); |
| 786 | 786 |
| 787 if (!c) | 787 if (!c) |
| 788 c = gaim_conversation_new(GAIM_CONV_IM, nick); | 788 c = gaim_conversation_new(GAIM_CONV_IM, NULL, nick); |
| 789 | 789 |
| 790 gaim_conversation_write(c, who, what, -1, wflags, time(NULL)); | 790 gaim_conversation_write(c, who, what, -1, wflags, time(NULL)); |
| 791 XSRETURN(0); | 791 XSRETURN(0); |
| 792 } | 792 } |
| 793 | 793 |
| 794 XS (XS_GAIM_serv_send_im) | 794 XS (XS_GAIM_serv_send_im) |
| 829 isauto = SvIV(ST(3)); | 829 isauto = SvIV(ST(3)); |
| 830 if (!g_slist_find(connections, gc)) { | 830 if (!g_slist_find(connections, gc)) { |
| 831 XSRETURN(0); | 831 XSRETURN(0); |
| 832 return; | 832 return; |
| 833 } | 833 } |
| 834 | |
| 834 c = gaim_find_conversation(nick); | 835 c = gaim_find_conversation(nick); |
| 836 | |
| 835 if (!c) | 837 if (!c) |
| 836 c = gaim_conversation_new(GAIM_CONV_IM, nick); | 838 c = gaim_conversation_new(GAIM_CONV_IM, gc->user, nick); |
| 837 gaim_conversation_set_user(c, gc->user); | 839 else |
| 840 gaim_conversation_set_user(c, gc->user); | |
| 841 | |
| 838 gaim_conversation_write(c, NULL, what, -1, | 842 gaim_conversation_write(c, NULL, what, -1, |
| 839 (WFLAG_SEND | (isauto ? WFLAG_AUTO : 0)), | 843 (WFLAG_SEND | (isauto ? WFLAG_AUTO : 0)), |
| 840 time(NULL)); | 844 time(NULL)); |
| 841 serv_send_im(gc, nick, what, -1, isauto ? IM_FLAG_AWAY : 0); | 845 serv_send_im(gc, nick, what, -1, isauto ? IM_FLAG_AWAY : 0); |
| 842 XSRETURN(0); | 846 XSRETURN(0); |
