# HG changeset patch # User Sean Egan # Date 1015349466 0 # Node ID f188ae5e575b2813f8a39a5901d0a3e55567956a # Parent 03d98a2e8e494f8cff96379659bdf2c14d515908 [gaim-migrate @ 3022] I gotta stop making mistakes like this. committer: Tailor Script diff -r 03d98a2e8e49 -r f188ae5e575b src/protocols/oscar/oscar.c --- 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) {