comparison plugins/jabber/jabber.c @ 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 0d53e0eb4456
children
comparison
equal deleted inserted replaced
2080:627997c9a766 2081:d83fe4ac3d7e
1956 1956
1957 static void jabber_set_idle(struct gaim_connection *gc, int idle) { 1957 static void jabber_set_idle(struct gaim_connection *gc, int idle) {
1958 struct jabber_data *jd = (struct jabber_data *)gc->proto_data; 1958 struct jabber_data *jd = (struct jabber_data *)gc->proto_data;
1959 debug_printf("jabber_set_idle: setting idle %i\n", idle); 1959 debug_printf("jabber_set_idle: setting idle %i\n", idle);
1960 jd->idle = idle ? time(NULL) - idle : idle; 1960 jd->idle = idle ? time(NULL) - idle : idle;
1961 }
1962
1963 static void jabber_keepalive(struct gaim_connection *gc) {
1964 struct jabber_data *jd = (struct jabber_data *)gc->proto_data;
1965 gjab_send_raw(jd->jc, " \t ");
1961 } 1966 }
1962 1967
1963 static void jabber_print_option(GtkEntry *entry, struct aim_user *user) 1968 static void jabber_print_option(GtkEntry *entry, struct aim_user *user)
1964 { 1969 {
1965 int entrynum; 1970 int entrynum;
2050 ret->chat_invite = jabber_chat_invite; 2055 ret->chat_invite = jabber_chat_invite;
2051 ret->chat_leave = jabber_chat_leave; 2056 ret->chat_leave = jabber_chat_leave;
2052 ret->chat_whisper = jabber_chat_whisper; 2057 ret->chat_whisper = jabber_chat_whisper;
2053 ret->chat_set_topic = jabber_chat_set_topic; 2058 ret->chat_set_topic = jabber_chat_set_topic;
2054 ret->chat_send = jabber_chat_send; 2059 ret->chat_send = jabber_chat_send;
2055 ret->keepalive = NULL; 2060 ret->keepalive = jabber_keepalive;
2056 ret->normalize = jabber_normalize; 2061 ret->normalize = jabber_normalize;
2057 2062
2058 my_protocol = ret; 2063 my_protocol = ret;
2059 } 2064 }
2060 2065