comparison src/protocols/oscar/oscar.c @ 2123:56c4382f2909

[gaim-migrate @ 2133] now has the ability to notify you beforehand that messages are too long. I haven't tested this yet though. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 06 Aug 2001 17:50:46 +0000
parents 9f83b7ef1fdc
children b935eca131be
comparison
equal deleted inserted replaced
2122:c99c781e5931 2123:56c4382f2909
2441 2441
2442 static char *oscar_name() { 2442 static char *oscar_name() {
2443 return "Oscar"; 2443 return "Oscar";
2444 } 2444 }
2445 2445
2446 static void oscar_send_im(struct gaim_connection *gc, char *name, char *message, int away) { 2446 static int oscar_send_im(struct gaim_connection *gc, char *name, char *message, int away) {
2447 struct oscar_data *odata = (struct oscar_data *)gc->proto_data; 2447 struct oscar_data *odata = (struct oscar_data *)gc->proto_data;
2448 struct direct_im *dim = find_direct_im(odata, name); 2448 struct direct_im *dim = find_direct_im(odata, name);
2449 if (dim) { 2449 if (dim) {
2450 aim_send_im_direct(odata->sess, dim->conn, message); 2450 return aim_send_im_direct(odata->sess, dim->conn, message);
2451 } else { 2451 } else {
2452 if (away) 2452 if (away)
2453 aim_send_im(odata->sess, odata->conn, name, AIM_IMFLAGS_AWAY, message); 2453 return aim_send_im(odata->sess, odata->conn, name, AIM_IMFLAGS_AWAY, message);
2454 else { 2454 else {
2455 int flags = AIM_IMFLAGS_ACK; 2455 int flags = AIM_IMFLAGS_ACK;
2456 #if USE_PIXBUF 2456 #if USE_PIXBUF
2457 GSList *h = odata->hasicons; 2457 GSList *h = odata->hasicons;
2458 struct icon_req *ir; 2458 struct icon_req *ir;
2467 ir->request = FALSE; 2467 ir->request = FALSE;
2468 flags |= AIM_IMFLAGS_BUDDYREQ; 2468 flags |= AIM_IMFLAGS_BUDDYREQ;
2469 debug_printf("sending buddy icon request with message\n"); 2469 debug_printf("sending buddy icon request with message\n");
2470 } 2470 }
2471 #endif 2471 #endif
2472 aim_send_im(odata->sess, odata->conn, name, flags, message); 2472 return aim_send_im(odata->sess, odata->conn, name, flags, message);
2473 } 2473 }
2474 } 2474 }
2475 } 2475 }
2476 2476
2477 static void oscar_get_info(struct gaim_connection *g, char *name) { 2477 static void oscar_get_info(struct gaim_connection *g, char *name) {