Mercurial > pidgin.yaz
diff src/protocols/irc/irc.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/irc/irc.c Sun Aug 26 19:18:39 2001 +0000 +++ b/src/protocols/irc/irc.c Sun Aug 26 20:21:45 2001 +0000 @@ -308,7 +308,7 @@ } static void irc_chat_leave(struct gaim_connection *gc, int id); -static void irc_chat_send(struct gaim_connection *gc, int id, char *message) +static int irc_chat_send(struct gaim_connection *gc, int id, char *message) { struct irc_data *idata = (struct irc_data *)gc->proto_data; @@ -323,7 +323,7 @@ if (!channel) { /* If for some reason we've lost our channel, let's bolt */ g_free(buf); - return; + return -EINVAL; } @@ -416,7 +416,7 @@ irc_chat_leave(gc, id); is_command = TRUE; - return; + return 0; } @@ -431,7 +431,7 @@ irc_join_chat(gc, 0, temp); g_free(temp); is_command = TRUE; - return; + return 0; } else if (!g_strncasecmp(message, "/raw ", 5) && (strlen(message) > 5)) { @@ -524,8 +524,9 @@ g_free(buf); - + return 0; } + static struct conversation *find_conversation_by_id(struct gaim_connection *gc, int id) { GSList *bc = gc->buddy_chats;
