Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/oscar.c @ 23217:8fa7631158ca
Don't include the warning level in OSCAR user_info twice. The first inclusion
wasn't checking to only display it if it's non-zero; since warning has been
removed from (almost?) all AIM clients, we were (almost?) always displaying
'Warning Level: 0' in oscar user info.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Tue, 27 May 2008 03:45:59 +0000 |
parents | b24d5d112a14 |
children | b1e219ed4e1c f7944b0ffe46 |
comparison
equal
deleted
inserted
replaced
23216:3dc1bc92b170 | 23217:8fa7631158ca |
---|---|
2941 va_end(ap); | 2941 va_end(ap); |
2942 | 2942 |
2943 user_info = purple_notify_user_info_new(); | 2943 user_info = purple_notify_user_info_new(); |
2944 purple_notify_user_info_add_pair(user_info, _("Username"), userinfo->sn); | 2944 purple_notify_user_info_add_pair(user_info, _("Username"), userinfo->sn); |
2945 | 2945 |
2946 tmp = g_strdup_printf("%d", (int)((userinfo->warnlevel/10.0) + 0.5)); | |
2947 purple_notify_user_info_add_pair(user_info, _("Warning Level"), tmp); | |
2948 g_free(tmp); | |
2949 | |
2950 if (userinfo->present & AIM_USERINFO_PRESENT_ONLINESINCE) { | 2946 if (userinfo->present & AIM_USERINFO_PRESENT_ONLINESINCE) { |
2951 time_t t = userinfo->onlinesince; | 2947 time_t t = userinfo->onlinesince; |
2952 oscar_user_info_add_pair(user_info, _("Online Since"), purple_date_format_full(localtime(&t))); | 2948 oscar_user_info_add_pair(user_info, _("Online Since"), purple_date_format_full(localtime(&t))); |
2953 } | 2949 } |
2954 | 2950 |