| 855 g_snprintf(buf, MSG_LEN, "toc_rvous_cancel %s %s %s", normalize(name), |
854 g_snprintf(buf, MSG_LEN, "toc_rvous_cancel %s %s %s", normalize(name), |
| 856 cookie, uid); |
855 cookie, uid); |
| 857 sflap_send(g, buf, -1, TYPE_DATA); |
856 sflap_send(g, buf, -1, TYPE_DATA); |
| 858 } |
857 } |
| 859 |
858 |
| 860 void serv_do_imimage(GtkWidget *w, char *name) { |
|
| 861 struct conversation *cnv = find_conversation(name); |
|
| 862 if (!cnv) cnv = new_conversation(name); |
|
| 863 |
|
| 864 if (cnv->gc->protocol == PROTO_TOC) { |
|
| 865 /* Direct IM TOC FIXME */ |
|
| 866 } else if (cnv->gc->protocol == PROTO_OSCAR) { |
|
| 867 /* PRPL |
|
| 868 oscar_do_directim(cnv->gc, name); |
|
| 869 */ |
|
| 870 } |
|
| 871 } |
|
| 872 |
|
| 873 void serv_got_imimage(struct gaim_connection *gc, char *name, char *cookie, char *ip, |
|
| 874 struct aim_conn_t *conn, int watcher) |
|
| 875 { |
|
| 876 if (gc->protocol == PROTO_TOC) { |
|
| 877 /* Direct IM TOC FIXME */ |
|
| 878 } else if (gc->protocol == PROTO_OSCAR) { |
|
| 879 struct conversation *cnv = find_conversation(name); |
|
| 880 if (!cnv) cnv = new_conversation(name); |
|
| 881 make_direct(cnv, TRUE, conn, watcher); |
|
| 882 } |
|
| 883 } |
|
| 884 |
|
| 885 void send_keepalive(gpointer d) { |
859 void send_keepalive(gpointer d) { |
| 886 struct gaim_connection *gc = (struct gaim_connection *)d; |
860 struct gaim_connection *gc = (struct gaim_connection *)d; |
| 887 debug_print("sending oscar NOP\n"); |
861 debug_print("sending oscar NOP\n"); |
| 888 if (gc->prpl && gc->prpl->keepalive) |
862 if (gc->prpl && gc->prpl->keepalive) |
| 889 (*gc->prpl->keepalive)(gc); |
863 (*gc->prpl->keepalive)(gc); |