Mercurial > pidgin.yaz
diff src/protocols/zephyr/zephyr.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 | c24595d3c364 |
line wrap: on
line diff
--- a/src/protocols/zephyr/zephyr.c Sun Aug 26 19:18:39 2001 +0000 +++ b/src/protocols/zephyr/zephyr.c Sun Aug 26 20:21:45 2001 +0000 @@ -30,6 +30,7 @@ #include <gtk/gtk.h> #include <string.h> #include <stdlib.h> +#include <errno.h> #include "gaim.h" #include "prpl.h" #include "zephyr/zephyr.h" @@ -683,7 +684,7 @@ static void zephyr_add_buddy(struct gaim_connection *gc, char *buddy) { } static void zephyr_remove_buddy(struct gaim_connection *gc, char *buddy) { } -static void zephyr_chat_send(struct gaim_connection *gc, int id, char *im) +static int zephyr_chat_send(struct gaim_connection *gc, int id, char *im) { ZNotice_t notice; zephyr_triple *zt; @@ -693,7 +694,7 @@ zt = find_sub_by_id(id); if (!zt) /* this should never happen. */ - return; + return -EINVAL; sig = ZGetVariable("zwrite-signature"); if (!sig) { @@ -720,6 +721,7 @@ notice.z_message = buf; ZSendNotice(¬ice, ZAUTH); g_free(buf); + return 0; } static int zephyr_send_im(struct gaim_connection *gc, char *who, char *im, int away) {