Mercurial > pidgin.yaz
comparison src/protocols/yahoo/yay.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 | b66aca8e8dce |
children | 91223be78b70 |
comparison
equal
deleted
inserted
replaced
2122:c99c781e5931 | 2123:56c4382f2909 |
---|---|
440 yahoo_disconnect(yd->sess); | 440 yahoo_disconnect(yd->sess); |
441 yahoo_delete(yd->sess); | 441 yahoo_delete(yd->sess); |
442 g_free(yd); | 442 g_free(yd); |
443 } | 443 } |
444 | 444 |
445 static void yahoo_send_im(struct gaim_connection *gc, char *who, char *message, int away) { | 445 static int yahoo_send_im(struct gaim_connection *gc, char *who, char *message, int away) { |
446 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; | 446 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; |
447 GSList *l = yd->offline; | 447 GSList *l = yd->offline; |
448 | 448 |
449 if (away || !strlen(message)) return; | 449 if (away || !strlen(message)) return 0; |
450 | 450 |
451 while (l) { | 451 while (l) { |
452 if (!strcmp(who, l->data)) | 452 if (!strcmp(who, l->data)) |
453 break; | 453 break; |
454 l = l->next; | 454 l = l->next; |
456 | 456 |
457 if (l) | 457 if (l) |
458 yahoo_send_message(yd->sess, yd->active_id, who, message); | 458 yahoo_send_message(yd->sess, yd->active_id, who, message); |
459 else | 459 else |
460 yahoo_send_message_offline(yd->sess, yd->active_id, who, message); | 460 yahoo_send_message_offline(yd->sess, yd->active_id, who, message); |
461 return 0; | |
461 } | 462 } |
462 | 463 |
463 static void yahoo_set_away(struct gaim_connection *gc, char *state, char *msg) { | 464 static void yahoo_set_away(struct gaim_connection *gc, char *state, char *msg) { |
464 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; | 465 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; |
465 | 466 |