Mercurial > pidgin
comparison src/server.c @ 1002:1d8f05ea6bdf
[gaim-migrate @ 1012]
i don't even remember what happened. all good things, i hope
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 18 Oct 2000 02:38:18 +0000 |
| parents | 91b7377e7b45 |
| children | 0a4d0ed65e17 |
comparison
equal
deleted
inserted
replaced
| 1001:b8a819390499 | 1002:1d8f05ea6bdf |
|---|---|
| 187 } | 187 } |
| 188 | 188 |
| 189 | 189 |
| 190 void serv_set_away(char *message) | 190 void serv_set_away(char *message) |
| 191 { | 191 { |
| 192 /* FIXME: for now, setting away sets *everyone* to away */ | |
| 193 GSList *c = connections; | 192 GSList *c = connections; |
| 194 struct gaim_connection *g; | 193 struct gaim_connection *g; |
| 195 | 194 |
| 196 while (c) { | 195 while (c) { |
| 197 g = (struct gaim_connection *)c->data; | 196 g = (struct gaim_connection *)c->data; |
| 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); |
