diff src/protocols/msn/msn.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 83d8a9b7e89b
children f631cfc8e824
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Sat Aug 04 01:37:49 2001 +0000
+++ b/src/protocols/msn/msn.c	Mon Aug 06 17:50:46 2001 +0000
@@ -1142,7 +1142,7 @@
 	g_free(md);
 }
 
-static void msn_send_im(struct gaim_connection *gc, char *who, char *message, int away)
+static int msn_send_im(struct gaim_connection *gc, char *who, char *message, int away)
 {
 	struct msn_data *md = gc->proto_data;
 	struct msn_switchboard *ms = msn_find_switch(gc, who);
@@ -1162,7 +1162,7 @@
 		if (msn_write(md->fd, buf, strlen(buf)) < 0) {
 			hide_login_progress(gc, "Write error");
 			signoff(gc);
-			return;
+			return 0;
 		}
 
 		ms = g_new0(struct msn_switchboard, 1);
@@ -1174,6 +1174,7 @@
 	} else
 		/* in msn you can't send messages to yourself, so we'll fake like we received it ;) */
 		serv_got_im(gc, who, message, away, time(NULL));
+	return 0;
 }
 
 static void msn_chat_send(struct gaim_connection *gc, int id, char *message)