Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
2304:15fb364935ec | 2305:0371b905baef |
---|---|
1121 static int gaim_parse_oncoming(aim_session_t *sess, aim_frame_t *fr, ...) { | 1121 static int gaim_parse_oncoming(aim_session_t *sess, aim_frame_t *fr, ...) { |
1122 struct aim_userinfo_s *info; | 1122 struct aim_userinfo_s *info; |
1123 time_t time_idle; | 1123 time_t time_idle; |
1124 int type = 0; | 1124 int type = 0; |
1125 struct gaim_connection *gc = sess->aux_data; | 1125 struct gaim_connection *gc = sess->aux_data; |
1126 char *tmp; | |
1126 | 1127 |
1127 va_list ap; | 1128 va_list ap; |
1128 va_start(ap, fr); | 1129 va_start(ap, fr); |
1129 info = va_arg(ap, struct aim_userinfo_s *); | 1130 info = va_arg(ap, struct aim_userinfo_s *); |
1130 va_end(ap); | 1131 va_end(ap); |
1143 if (info->idletime) { | 1144 if (info->idletime) { |
1144 time(&time_idle); | 1145 time(&time_idle); |
1145 time_idle -= info->idletime*60; | 1146 time_idle -= info->idletime*60; |
1146 } else | 1147 } else |
1147 time_idle = 0; | 1148 time_idle = 0; |
1149 | |
1150 tmp = g_strdup(normalize(gc->username)); | |
1151 if (!strcmp(tmp, normalize(info->sn))) | |
1152 g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", info->sn); | |
1153 g_free(tmp); | |
1148 | 1154 |
1149 serv_got_update(gc, info->sn, 1, info->warnlevel/10, info->onlinesince, | 1155 serv_got_update(gc, info->sn, 1, info->warnlevel/10, info->onlinesince, |
1150 time_idle, type, info->capabilities); | 1156 time_idle, type, info->capabilities); |
1151 | 1157 |
1152 return 1; | 1158 return 1; |