Mercurial > pidgin
diff src/protocols/msn/msn.c @ 2167:edf8c5a70e5b
[gaim-migrate @ 2177]
limiting chat message lengths
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 26 Aug 2001 20:21:45 +0000 |
parents | a464da684307 |
children | b7807144bf44 |
line wrap: on
line diff
--- a/src/protocols/msn/msn.c Sun Aug 26 19:18:39 2001 +0000 +++ b/src/protocols/msn/msn.c Sun Aug 26 20:21:45 2001 +0000 @@ -3,6 +3,7 @@ #include <stdlib.h> #include <gtk/gtk.h> #include <string.h> +#include <errno.h> #include <stdio.h> #include <unistd.h> #include <ctype.h> @@ -1170,13 +1171,13 @@ return 0; } -static void msn_chat_send(struct gaim_connection *gc, int id, char *message) +static int msn_chat_send(struct gaim_connection *gc, int id, char *message) { struct msn_switchboard *ms = msn_find_switch_by_id(gc, id); char buf[MSN_BUF_LEN]; if (!ms) - return; + return -EINVAL; g_snprintf(buf, sizeof(buf), "MSG %d N %d\r\n%s%s", ++ms->trId, strlen(MIME_HEADER) + strlen(message), @@ -1185,6 +1186,7 @@ msn_kill_switch(ms); debug_printf("\n"); serv_got_chat_in(gc, id, gc->username, 0, message, time(NULL)); + return 0; } static void msn_chat_invite(struct gaim_connection *gc, int id, char *msg, char *who)