Changeset f4d0975 for functions.c


Ignore:
Timestamp:
Oct 10, 2003, 5:12:19 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e374dee
Parents:
12582d3
Message:
Fixed bug with idle times causing broken pipes.
New libfaim
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rf933403 rf4d0975  
    28752875  int i, j, idle;
    28762876  owl_fmtext fm;
    2877   owl_buddylist *b;
     2877  owl_buddylist *bl;
     2878  owl_buddy *b;
    28782879  char *foo, *timestr;
    28792880#ifdef HAVE_LIBZEPHYR
     
    28872888
    28882889  if (aim && owl_global_is_aimloggedin(&g)) {
    2889     b=owl_global_get_buddylist(&g);
     2890    bl=owl_global_get_buddylist(&g);
    28902891
    28912892    owl_fmtext_append_bold(&fm, "AIM users logged in:\n");
    2892     j=owl_buddylist_get_size(b);
     2893    /* we're assuming AIM for now */
     2894    j=owl_buddylist_get_size(bl);
    28932895    for (i=0; i<j; i++) {
    2894       idle=owl_buddylist_get_idletime(b, i);
     2896      b=owl_buddylist_get_buddy_n(bl, i);
     2897      idle=owl_buddy_get_idle_time(b);
    28952898      if (idle!=0) {
    28962899        timestr=owl_util_minutes_to_timestr(idle);
     
    28992902      }
    29002903      foo=owl_sprintf("  %-15.15s %-12.12s\n",
    2901                       owl_buddylist_get_buddy(b, i),
     2904                      owl_buddy_get_name(b),
    29022905                      timestr);
    29032906      owl_fmtext_append_normal(&fm, foo);
Note: See TracChangeset for help on using the changeset viewer.