comparison src/server.c @ 1995:815997c7d4f1

[gaim-migrate @ 2005] i think this might fix some things committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 11 Jun 2001 23:25:06 +0000
parents 7739e648a28a
children ae11844fa2b1
comparison
equal deleted inserted replaced
1994:0c8073b877d2 1995:815997c7d4f1
111 111
112 gc->idle_timer = gtk_timeout_add(20000, (GtkFunction)check_idle, gc); 112 gc->idle_timer = gtk_timeout_add(20000, (GtkFunction)check_idle, gc);
113 serv_touch_idle(gc); 113 serv_touch_idle(gc);
114 114
115 time(&gc->login_time); 115 time(&gc->login_time);
116
117 if (gc->prpl->options & OPT_PROTO_CORRECT_TIME)
118 serv_add_buddy(gc, gc->username);
116 119
117 update_keepalive(gc, TRUE); 120 update_keepalive(gc, TRUE);
118 } 121 }
119 122
120 123
575 { 578 {
576 struct buddy *b = find_buddy(gc, name); 579 struct buddy *b = find_buddy(gc, name);
577 580
578 if (gc->prpl->options & OPT_PROTO_CORRECT_TIME) { 581 if (gc->prpl->options & OPT_PROTO_CORRECT_TIME) {
579 char *tmp = g_strdup(normalize(name)); 582 char *tmp = g_strdup(normalize(name));
580 if (!strcasecmp(tmp, normalize(gc->username))) 583 if (!g_strcasecmp(tmp, normalize(gc->username))) {
581 gc->correction_time = (int)(signon - gc->login_time); 584 gc->correction_time = (signon - gc->login_time);
585 update_idle_times();
586 }
582 g_free(tmp); 587 g_free(tmp);
583 } 588 }
584 589
585 if (!b) { 590 if (!b) {
586 debug_printf("Error, no such buddy %s\n", name); 591 debug_printf("Error, no such buddy %s\n", name);