Mercurial > pidgin.yaz
changeset 12031:bef758a67e48
[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 <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Wed, 09 Nov 2005 19:02:48 +0000 |
parents | 7165a7a444da |
children | 62955c595e49 |
files | src/protocols/irc/irc.c |
diffstat | 1 files changed, 1 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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 */