Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
1434:348a70e15f07 | 1435:f16e17d42b43 |
---|---|
421 void serv_got_update(struct gaim_connection *gc, char *name, int loggedin, int evil, time_t signon, | 421 void serv_got_update(struct gaim_connection *gc, char *name, int loggedin, int evil, time_t signon, |
422 time_t idle, int type, gushort caps) | 422 time_t idle, int type, gushort caps) |
423 { | 423 { |
424 struct buddy *b = find_buddy(gc, name); | 424 struct buddy *b = find_buddy(gc, name); |
425 | 425 |
426 if (gc->prpl->options & OPT_PROTO_CORRECT_TIME) { | |
427 char *tmp = g_strdup(normalize(name)); | |
428 if (!strcasecmp(tmp, normalize(gc->username))) | |
429 gc->correction_time = (int)(signon - gc->login_time); | |
430 g_free(tmp); | |
431 } | |
432 | |
426 if (!b) { | 433 if (!b) { |
427 debug_printf("Error, no such buddy %s\n", name); | 434 debug_printf("Error, no such buddy %s\n", name); |
428 return; | 435 return; |
429 } | 436 } |
430 | 437 |