Mercurial > pidgin.yaz
comparison src/server.c @ 1376:730a1a19b4cc
[gaim-migrate @ 1386]
yay, no more negative online times. also no more correction_time. i hope this doesn't break things. it shoudln't, right? oh well. um. since there's no more correction_time there's no more reason to force ourselves as a buddy (right?), so that also fixes the problem of yahoo forcing you to have yourself as a buddy.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 04 Jan 2001 22:58:08 +0000 |
parents | 1136f7896eeb |
children | bf041349b11e |
comparison
equal
deleted
inserted
replaced
1375:b167222b5c93 | 1376:730a1a19b4cc |
---|---|
109 gc->idle_timer = gtk_timeout_add(20000, (GtkFunction)check_idle, gc); | 109 gc->idle_timer = gtk_timeout_add(20000, (GtkFunction)check_idle, gc); |
110 serv_touch_idle(gc); | 110 serv_touch_idle(gc); |
111 | 111 |
112 time(&gc->login_time); | 112 time(&gc->login_time); |
113 | 113 |
114 serv_add_buddy(gc, gc->username); | |
115 | |
116 update_keepalive(gc, gc->options & OPT_USR_KEEPALV); | 114 update_keepalive(gc, gc->options & OPT_USR_KEEPALV); |
117 } | 115 } |
118 | 116 |
119 | 117 |
120 | 118 |
412 | 410 |
413 void serv_got_update(struct gaim_connection *gc, char *name, int loggedin, int evil, time_t signon, | 411 void serv_got_update(struct gaim_connection *gc, char *name, int loggedin, int evil, time_t signon, |
414 time_t idle, int type, gushort caps) | 412 time_t idle, int type, gushort caps) |
415 { | 413 { |
416 struct buddy *b = find_buddy(gc, name); | 414 struct buddy *b = find_buddy(gc, name); |
417 struct gaim_connection *g = find_gaim_conn_by_name(name); | |
418 | |
419 if (g) { | |
420 gc->correction_time = (int)(signon - g->login_time); | |
421 if (!b) { | |
422 return; | |
423 } | |
424 } | |
425 | 415 |
426 if (!b) { | 416 if (!b) { |
427 debug_printf("Error, no such person\n"); | 417 debug_printf("Error, no such buddy %s\n", name); |
428 return; | 418 return; |
429 } | 419 } |
430 | 420 |
431 /* This code will 'align' the name from the TOC */ | 421 /* This code will 'align' the name from the TOC */ |
432 /* server with what's in our record. We want to */ | 422 /* server with what's in our record. We want to */ |