Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 4798:0c95a3731244
[gaim-migrate @ 5118]
People seemed to like this better this way. Me? I'm not so sure,
but hey, I was raised to believe that celery should never be eaten
if it hasn't been dipped in warm chocolate sauce.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 16 Mar 2003 06:43:27 +0000 |
parents | e737e3e08b4a |
children | 7fd8a82a7c36 |
comparison
equal
deleted
inserted
replaced
4797:9561a1104131 | 4798:0c95a3731244 |
---|---|
2886 struct oscar_data *od = gc->proto_data; | 2886 struct oscar_data *od = gc->proto_data; |
2887 struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(b->name)); | 2887 struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(b->name)); |
2888 | 2888 |
2889 if (bi) { | 2889 if (bi) { |
2890 char *caps = caps_string(bi->caps); | 2890 char *caps = caps_string(bi->caps); |
2891 char *time = asctime(localtime(&bi->signon)); | 2891 char *tstr = sec_to_text(time(NULL) - bi->signon); |
2892 *(strchr(time, '\n')) = '\0'; | 2892 return g_strdup_printf(_("<b>Logged In:</b> %s%s%s"), |
2893 return g_strdup_printf(_("<b>Online Since:</b> %s%s%s"), | 2893 tstr, |
2894 time, | |
2895 caps ? _("\n<b>Capabilities:</b> ") : "", caps ? caps : ""); | 2894 caps ? _("\n<b>Capabilities:</b> ") : "", caps ? caps : ""); |
2896 } else { | 2895 } else { |
2897 return NULL; | 2896 return NULL; |
2898 } | 2897 } |
2899 } | 2898 } |