Mercurial > pidgin.yaz
diff src/server.c @ 1435:f16e17d42b43
[gaim-migrate @ 1445]
correction time is done again, for protocols that need it (which are only the AIM protocols so far)
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 28 Jan 2001 09:16:50 +0000 |
parents | 348a70e15f07 |
children | 1f0660a2c893 |
line wrap: on
line diff
--- a/src/server.c Sun Jan 28 09:09:18 2001 +0000 +++ b/src/server.c Sun Jan 28 09:16:50 2001 +0000 @@ -423,6 +423,13 @@ { struct buddy *b = find_buddy(gc, name); + 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); + g_free(tmp); + } + if (!b) { debug_printf("Error, no such buddy %s\n", name); return;