comparison 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
comparison
equal deleted inserted replaced
2122:c99c781e5931 2123:56c4382f2909
28 #include <string.h> 28 #include <string.h>
29 #include <sys/types.h> 29 #include <sys/types.h>
30 #include <sys/stat.h> 30 #include <sys/stat.h>
31 #include <sys/time.h> 31 #include <sys/time.h>
32 #include <unistd.h> 32 #include <unistd.h>
33 #include <errno.h>
33 #include <gtk/gtk.h> 34 #include <gtk/gtk.h>
34 #ifdef USE_SCREENSAVER 35 #ifdef USE_SCREENSAVER
35 #include <X11/Xlib.h> 36 #include <X11/Xlib.h>
36 #include <X11/Xutil.h> 37 #include <X11/Xutil.h>
37 #include <X11/extensions/scrnsaver.h> 38 #include <X11/extensions/scrnsaver.h>
117 update_keepalive(gc, TRUE); 118 update_keepalive(gc, TRUE);
118 } 119 }
119 120
120 121
121 122
122 void serv_send_im(struct gaim_connection *gc, char *name, char *message, int away) 123 int serv_send_im(struct gaim_connection *gc, char *name, char *message, int away)
123 { 124 {
125 int val = -EINVAL;
124 if (gc->prpl && gc->prpl->send_im) 126 if (gc->prpl && gc->prpl->send_im)
125 (*gc->prpl->send_im)(gc, name, message, away); 127 val = (*gc->prpl->send_im)(gc, name, message, away);
126 128
127 if (!away) 129 if (!away)
128 serv_touch_idle(gc); 130 serv_touch_idle(gc);
131
132 return val;
129 } 133 }
130 134
131 void serv_get_info(struct gaim_connection *g, char *name) 135 void serv_get_info(struct gaim_connection *g, char *name)
132 { 136 {
133 if (g && g->prpl && g->prpl->get_info) 137 if (g && g->prpl && g->prpl->get_info)