changeset 2081:d83fe4ac3d7e

[gaim-migrate @ 2091] Send keepalives. committer: Tailor Script <tailor@pidgin.im>
author Adam Fritzler <mid@auk.cx>
date Mon, 23 Jul 2001 20:14:42 +0000
parents 627997c9a766
children 3937f5eb6d75
files plugins/jabber/jabber.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/jabber/jabber.c	Mon Jul 23 19:16:50 2001 +0000
+++ b/plugins/jabber/jabber.c	Mon Jul 23 20:14:42 2001 +0000
@@ -1960,6 +1960,11 @@
    	jd->idle = idle ? time(NULL) - idle : idle;
 }
 
+static void jabber_keepalive(struct gaim_connection *gc) {
+	struct jabber_data *jd = (struct jabber_data *)gc->proto_data;
+	gjab_send_raw(jd->jc, "  \t  ");
+}
+
 static void jabber_print_option(GtkEntry *entry, struct aim_user *user)
 {
 	int entrynum;
@@ -2052,7 +2057,7 @@
 	ret->chat_whisper = jabber_chat_whisper;
 	ret->chat_set_topic = jabber_chat_set_topic;
 	ret->chat_send = jabber_chat_send;
-	ret->keepalive = NULL;
+	ret->keepalive = jabber_keepalive;
 	ret->normalize = jabber_normalize;
 
 	my_protocol = ret;