summaryrefslogtreecommitdiff
path: root/src/irc/core/irc.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-11 03:11:18 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-11 03:11:18 +0000
commitabe4e30256e4babacdec8837abafc3eb0a19e321 (patch)
tree123cde60b6e20855cf3f21a1618ebe14cee2352d /src/irc/core/irc.c
parent1528cfc9d7ab32ba9573382fa7aa80d0f8fc472f (diff)
downloadirssi-abe4e30256e4babacdec8837abafc3eb0a19e321.zip
Safer flood protection for lines longer than 100 chars. Maybe even a bit too
safe but generally you write lines less than 100 chars so it shouldn't really matter. Calculated (2 + line_length/100) in seconds. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2575 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc.c')
-rw-r--r--src/irc/core/irc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c
index 88816404..d7afaa23 100644
--- a/src/irc/core/irc.c
+++ b/src/irc/core/irc.c
@@ -82,13 +82,7 @@ void irc_send_cmd_full(IRC_SERVER_REC *server, const char *cmd,
}
if (send_now) {
- if (net_sendbuffer_send(server->handle, cmd, len) == -1) {
- /* something bad happened */
- server->connection_lost = TRUE;
- return;
- }
-
- g_get_current_time(&server->last_cmd);
+ irc_server_send_data(server, cmd, len);
return;
}