diff src/protocols/napster/napster.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/napster/napster.c	Sun Aug 26 19:18:39 2001 +0000
+++ b/src/protocols/napster/napster.c	Sun Aug 26 20:21:45 2001 +0000
@@ -952,7 +952,7 @@
 	
 }
 
-static void nap_chat_send(struct gaim_connection *gc, int id, char *message)
+static int nap_chat_send(struct gaim_connection *gc, int id, char *message)
 {
 	struct nap_channel *channel = NULL;
 	gchar buf[NAP_BUF_LEN];
@@ -961,12 +961,12 @@
 
 	if (!channel) {
 		/* This shouldn't happen */
-		return;
+		return -EINVAL;
 	}
 
 	g_snprintf(buf, NAP_BUF_LEN, "%s %s", channel->name, message);
 	nap_write_packet(gc, 0x192, buf);
-
+	return 0;
 }
 
 static void nap_add_buddy(struct gaim_connection *gc, char *name)