diff 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
line wrap: on
line diff
--- a/src/server.c	Wed Oct 11 18:02:20 2000 +0000
+++ b/src/server.c	Wed Oct 11 20:16:04 2000 +0000
@@ -282,19 +282,15 @@
 	}
 }
 
-void serv_change_passwd(char *orig, char *new) {
-	/* FIXME: passwords are the kinds of things you don't want randomly changed;
-	 * this whole thing is commented out :-P
-	struct gaim_connection *g = connections->data;
+void serv_change_passwd(struct gaim_connection *g, char *orig, char *new) {
 	if (g->protocol == PROTO_TOC) {
 		char *buf = g_malloc(BUF_LONG); 
 		g_snprintf(buf, BUF_LONG, "toc_change_passwd %s %s", orig, new);
 		sflap_send(g, buf, strlen(buf), TYPE_DATA);
 		g_free(buf);
 	} else if (g->protocol == PROTO_OSCAR) {
-		Oscar change_passwd FIXME
+		/* Oscar change_passwd FIXME */
 	}
-	*/
 }
 
 void serv_add_buddy(char *name)
@@ -1080,21 +1076,17 @@
         chat_write(b, who, w, message);
 }
 
-void serv_rvous_accept(char *name, char *cookie, char *uid)
+void serv_rvous_accept(struct gaim_connection *g, char *name, char *cookie, char *uid)
 {
 	/* Oscar doesn't matter here because this won't ever be called for it */
-	/* FIXME */
-	struct gaim_connection *g = connections->data;
 	char buf[MSG_LEN];
 	g_snprintf(buf, MSG_LEN, "toc_rvous_accept %s %s %s", normalize(name),
 			cookie, uid);
 	sflap_send(g, buf, -1, TYPE_DATA);
 }
 
-void serv_rvous_cancel(char *name, char *cookie, char *uid)
+void serv_rvous_cancel(struct gaim_connection *g, char *name, char *cookie, char *uid)
 {
-	/* FIXME */
-	struct gaim_connection *g = connections->data;
 	char buf[MSG_LEN];
 	g_snprintf(buf, MSG_LEN, "toc_rvous_cancel %s %s %s", normalize(name),
 			cookie, uid);