# HG changeset patch # User Ethan Blanton # Date 1131562968 0 # Node ID bef758a67e4827987b47f897edc756f3e2683420 # Parent 7165a7a444da071e30adcabcba8da0027ee31d88 [gaim-migrate @ 14324] These rapid IRC pings are a Really Bad Idea. I'm not sure how they got in, and I don't really want to know. In any case, I'm removing them. If we want to add a keepalive which fires only when there is a truly idle connection, and after some suitable delay, then that's fine ... but this was not that. committer: Tailor Script diff -r 7165a7a444da -r bef758a67e48 src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Wed Nov 09 15:05:33 2005 +0000 +++ b/src/protocols/irc/irc.c Wed Nov 09 19:02:48 2005 +0000 @@ -51,7 +51,6 @@ static void irc_close(GaimConnection *gc); static int irc_im_send(GaimConnection *gc, const char *who, const char *what, GaimConvImFlags flags); static int irc_chat_send(GaimConnection *gc, int id, const char *what); -static void irc_ping_server(GaimConnection *gc); static void irc_chat_join (GaimConnection *gc, GHashTable *data); static void irc_input_cb(gpointer data, gint source, GaimInputCondition cond); static void irc_input_cb_ssl(gpointer data, GaimSslConnection *gsc, GaimInputCondition cond); @@ -622,16 +621,6 @@ return 0; } -static void irc_ping_server(GaimConnection *gc) -{ - struct irc_conn *irc = gc->proto_data; - gchar *buf; - - buf = irc_format(irc, "vv", "PING", irc->server); - irc_send(irc, buf); - g_free(buf); -} - static guint irc_nick_hash(const char *nick) { char *lc; @@ -761,7 +750,7 @@ irc_chat_leave, /* chat_leave */ NULL, /* chat_whisper */ irc_chat_send, /* chat_send */ - irc_ping_server, /* keepalive */ + NULL, /* keepalive */ NULL, /* register_user */ NULL, /* get_cb_info */ NULL, /* get_cb_away */