Mercurial > pidgin
diff src/protocols/oscar/oscar.c @ 2305:0371b905baef
[gaim-migrate @ 2315]
hi
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 18 Sep 2001 18:17:21 +0000 |
parents | f5bf315e6104 |
children | a90be9567452 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Tue Sep 18 01:46:56 2001 +0000 +++ b/src/protocols/oscar/oscar.c Tue Sep 18 18:17:21 2001 +0000 @@ -1123,6 +1123,7 @@ time_t time_idle; int type = 0; struct gaim_connection *gc = sess->aux_data; + char *tmp; va_list ap; va_start(ap, fr); @@ -1146,6 +1147,11 @@ } else time_idle = 0; + tmp = g_strdup(normalize(gc->username)); + if (!strcmp(tmp, normalize(info->sn))) + g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", info->sn); + g_free(tmp); + serv_got_update(gc, info->sn, 1, info->warnlevel/10, info->onlinesince, time_idle, type, info->capabilities);