Mercurial > pidgin.yaz
changeset 3009:f188ae5e575b
[gaim-migrate @ 3022]
I gotta stop making mistakes like this.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 05 Mar 2002 17:31:06 +0000 |
parents | 03d98a2e8e49 |
children | 11827e3d714c |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Tue Mar 05 17:16:51 2002 +0000 +++ b/src/protocols/oscar/oscar.c Tue Mar 05 17:31:06 2002 +0000 @@ -2428,8 +2428,12 @@ struct direct_im *dim = find_direct_im(odata, name); int ret = 0; if (dim) { - if (dim->connected) /* If we're not connected yet, send through server */ - return aim_send_im_direct(odata->sess, dim->conn, message); + if (dim->connected) { /* If we're not connected yet, send through server */ + ret = aim_send_im_direct(odata->sess, dim->conn, message); + if (ret == 0) + return 1; + else return ret; + } debug_printf("Direct IM pending, but not connected; sending through server\n"); } if (imflags & IM_FLAG_AWAY) {