diff src/server.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 acc11216ec5d
children cff4fbe01c7b
line wrap: on
line diff
--- a/src/server.c	Sun Aug 26 19:18:39 2001 +0000
+++ b/src/server.c	Sun Aug 26 20:21:45 2001 +0000
@@ -327,11 +327,13 @@
 	   	(*g->prpl->chat_set_topic)(g, id, topic);
 }
 
-void serv_chat_send(struct gaim_connection *g, int id, char *message)
+int serv_chat_send(struct gaim_connection *g, int id, char *message)
 {
+	int val = -EINVAL;
 	if (g->prpl && g->prpl->chat_send)
-		(*g->prpl->chat_send)(g, id, message);
+		val = (*g->prpl->chat_send)(g, id, message);
 	serv_touch_idle(g);
+	return val;
 }
 
 int find_queue_row_by_name(char *name)