Mercurial > pidgin
diff src/server.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 | e6d42ea38914 |
children | acc11216ec5d |
line wrap: on
line diff
--- a/src/server.c Sat Aug 04 01:37:49 2001 +0000 +++ b/src/server.c Mon Aug 06 17:50:46 2001 +0000 @@ -30,6 +30,7 @@ #include <sys/stat.h> #include <sys/time.h> #include <unistd.h> +#include <errno.h> #include <gtk/gtk.h> #ifdef USE_SCREENSAVER #include <X11/Xlib.h> @@ -119,13 +120,16 @@ -void serv_send_im(struct gaim_connection *gc, char *name, char *message, int away) +int serv_send_im(struct gaim_connection *gc, char *name, char *message, int away) { + int val = -EINVAL; if (gc->prpl && gc->prpl->send_im) - (*gc->prpl->send_im)(gc, name, message, away); + val = (*gc->prpl->send_im)(gc, name, message, away); if (!away) serv_touch_idle(gc); + + return val; } void serv_get_info(struct gaim_connection *g, char *name)