pidgin: e7b26e4a: Don't include the warning level in OSCAR...
evands at pidgin.im
evands at pidgin.im
Mon May 26 23:51:03 EDT 2008
-----------------------------------------------------------------
Revision: e7b26e4ad289cb60bb72e4ddb99a5a93c1fbefc9
Ancestor: 417f9d0217b6d3b9f2b5f2b9361ffe03efc2d634
Author: evands at pidgin.im
Date: 2008-05-27T03:45:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e7b26e4ad289cb60bb72e4ddb99a5a93c1fbefc9
Modified files:
libpurple/protocols/oscar/oscar.c
ChangeLog:
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.
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c 647c0478cfbc8426683ed479050a79a46a13c9d8
+++ libpurple/protocols/oscar/oscar.c d40bef4dcb1d4e0ef1eb7edaf46bddbfdcf3b266
@@ -2943,10 +2943,6 @@ static int purple_parse_userinfo(OscarDa
user_info = purple_notify_user_info_new();
purple_notify_user_info_add_pair(user_info, _("Username"), userinfo->sn);
- tmp = g_strdup_printf("%d", (int)((userinfo->warnlevel/10.0) + 0.5));
- purple_notify_user_info_add_pair(user_info, _("Warning Level"), tmp);
- g_free(tmp);
-
if (userinfo->present & AIM_USERINFO_PRESENT_ONLINESINCE) {
time_t t = userinfo->onlinesince;
oscar_user_info_add_pair(user_info, _("Online Since"), purple_date_format_full(localtime(&t)));
More information about the Commits
mailing list