diff 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
line wrap: on
line diff
--- a/src/server.c	Mon Jun 11 23:17:02 2001 +0000
+++ b/src/server.c	Mon Jun 11 23:25:06 2001 +0000
@@ -114,6 +114,9 @@
 
 	time(&gc->login_time);
 
+	if (gc->prpl->options & OPT_PROTO_CORRECT_TIME)
+		serv_add_buddy(gc, gc->username);
+
 	update_keepalive(gc, TRUE);
 }
 
@@ -577,8 +580,10 @@
 
 	if (gc->prpl->options & OPT_PROTO_CORRECT_TIME) {
 		char *tmp = g_strdup(normalize(name));
-		if (!strcasecmp(tmp, normalize(gc->username)))
-			gc->correction_time = (int)(signon - gc->login_time);
+		if (!g_strcasecmp(tmp, normalize(gc->username))) {
+			gc->correction_time = (signon - gc->login_time);
+			update_idle_times();
+		}
 		g_free(tmp);
 	}