Mercurial > pidgin.yaz
comparison src/server.c @ 978:563c409e26a1
[gaim-migrate @ 988]
change passwd dialog works again
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 11 Oct 2000 20:16:04 +0000 |
parents | 2586b2a3725e |
children | 82c5865f7cfe |
comparison
equal
deleted
inserted
replaced
977:e5eac6b236f1 | 978:563c409e26a1 |
---|---|
280 aim_bos_setprofile(g->oscar_sess, g->oscar_conn, info, | 280 aim_bos_setprofile(g->oscar_sess, g->oscar_conn, info, |
281 NULL, gaim_caps); | 281 NULL, gaim_caps); |
282 } | 282 } |
283 } | 283 } |
284 | 284 |
285 void serv_change_passwd(char *orig, char *new) { | 285 void serv_change_passwd(struct gaim_connection *g, char *orig, char *new) { |
286 /* FIXME: passwords are the kinds of things you don't want randomly changed; | |
287 * this whole thing is commented out :-P | |
288 struct gaim_connection *g = connections->data; | |
289 if (g->protocol == PROTO_TOC) { | 286 if (g->protocol == PROTO_TOC) { |
290 char *buf = g_malloc(BUF_LONG); | 287 char *buf = g_malloc(BUF_LONG); |
291 g_snprintf(buf, BUF_LONG, "toc_change_passwd %s %s", orig, new); | 288 g_snprintf(buf, BUF_LONG, "toc_change_passwd %s %s", orig, new); |
292 sflap_send(g, buf, strlen(buf), TYPE_DATA); | 289 sflap_send(g, buf, strlen(buf), TYPE_DATA); |
293 g_free(buf); | 290 g_free(buf); |
294 } else if (g->protocol == PROTO_OSCAR) { | 291 } else if (g->protocol == PROTO_OSCAR) { |
295 Oscar change_passwd FIXME | 292 /* Oscar change_passwd FIXME */ |
296 } | 293 } |
297 */ | |
298 } | 294 } |
299 | 295 |
300 void serv_add_buddy(char *name) | 296 void serv_add_buddy(char *name) |
301 { | 297 { |
302 /* FIXME: this will need to be changed. for now all buddies will be added to | 298 /* FIXME: this will need to be changed. for now all buddies will be added to |
1078 w = 0; | 1074 w = 0; |
1079 | 1075 |
1080 chat_write(b, who, w, message); | 1076 chat_write(b, who, w, message); |
1081 } | 1077 } |
1082 | 1078 |
1083 void serv_rvous_accept(char *name, char *cookie, char *uid) | 1079 void serv_rvous_accept(struct gaim_connection *g, char *name, char *cookie, char *uid) |
1084 { | 1080 { |
1085 /* Oscar doesn't matter here because this won't ever be called for it */ | 1081 /* Oscar doesn't matter here because this won't ever be called for it */ |
1086 /* FIXME */ | |
1087 struct gaim_connection *g = connections->data; | |
1088 char buf[MSG_LEN]; | 1082 char buf[MSG_LEN]; |
1089 g_snprintf(buf, MSG_LEN, "toc_rvous_accept %s %s %s", normalize(name), | 1083 g_snprintf(buf, MSG_LEN, "toc_rvous_accept %s %s %s", normalize(name), |
1090 cookie, uid); | 1084 cookie, uid); |
1091 sflap_send(g, buf, -1, TYPE_DATA); | 1085 sflap_send(g, buf, -1, TYPE_DATA); |
1092 } | 1086 } |
1093 | 1087 |
1094 void serv_rvous_cancel(char *name, char *cookie, char *uid) | 1088 void serv_rvous_cancel(struct gaim_connection *g, char *name, char *cookie, char *uid) |
1095 { | 1089 { |
1096 /* FIXME */ | |
1097 struct gaim_connection *g = connections->data; | |
1098 char buf[MSG_LEN]; | 1090 char buf[MSG_LEN]; |
1099 g_snprintf(buf, MSG_LEN, "toc_rvous_cancel %s %s %s", normalize(name), | 1091 g_snprintf(buf, MSG_LEN, "toc_rvous_cancel %s %s %s", normalize(name), |
1100 cookie, uid); | 1092 cookie, uid); |
1101 sflap_send(g, buf, -1, TYPE_DATA); | 1093 sflap_send(g, buf, -1, TYPE_DATA); |
1102 } | 1094 } |