Changeset 5b85d19
- Timestamp:
- Jul 3, 2003, 10:46:22 PM (20 years ago)
- 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:
- 9ceee9d
- Parents:
- de03334
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
rde03334 r5b85d19 1 1 $Id$ 2 2 3 2.0.7-pre-2 4 Don't allow zwrite if zephyr isn't present 5 3 6 2.0.7-pre-1 4 7 Owl should build now without zephyr, enabling it to act as a -
buddylist.c
rde03334 r5b85d19 125 125 * screenname is not on the buddy list do nothing 126 126 */ 127 void owl_buddylist_set_idletime(owl_buddylist *b, char *screenname, int seconds)127 void owl_buddylist_set_idletime(owl_buddylist *b, char *screenname, int minutes) 128 128 { 129 129 int i, j, *idle; … … 134 134 owl_free(owl_list_get_element(&(b->idletimes), i)); 135 135 idle=owl_malloc(sizeof(int)); 136 *idle= seconds;136 *idle=minutes; 137 137 owl_list_replace_element(&(b->idletimes), i, idle); 138 138 return; -
commands.c
r453bd70 r5b85d19 1610 1610 owl_zwrite z; 1611 1611 1612 if (!owl_global_is_havezephyr(&g)) { 1613 owl_function_makemsg("Zephyr is not available"); 1614 return(NULL); 1615 } 1612 1616 /* check for a zwrite -m */ 1613 1617 owl_zwrite_create_from_line(&z, buff); -
functions.c
rde03334 r5b85d19 2865 2865 idle=owl_buddylist_get_idletime(b, i); 2866 2866 if (idle!=0) { 2867 timestr=owl_util_ seconds_to_timestr(idle);2867 timestr=owl_util_minutes_to_timestr(idle); 2868 2868 } else { 2869 2869 timestr=owl_strdup(""); 2870 2870 } 2871 foo=owl_sprintf(" %-10.10s %-1 5.15s\n",2871 foo=owl_sprintf(" %-10.10s %-10.10s\n", 2872 2872 owl_buddylist_get_buddy(b, i), 2873 2873 timestr); -
owl.h
rde03334 r5b85d19 21 21 static const char owl_h_fileIdent[] = "$Id$"; 22 22 23 #define OWL_VERSION 2.0.7-pre- 124 #define OWL_VERSION_STRING "2.0.7-pre- 1"23 #define OWL_VERSION 2.0.7-pre-2 24 #define OWL_VERSION_STRING "2.0.7-pre-2" 25 25 26 26 #define OWL_DEBUG 0 -
util.c
rde03334 r5b85d19 281 281 282 282 /* caller must free the return */ 283 char *owl_util_ seconds_to_timestr(int seconds)283 char *owl_util_minutes_to_timestr(int in) 284 284 { 285 285 int days, minutes, hours; … … 287 287 char *out; 288 288 289 run=seconds; 290 291 days=run/86400; 292 run-=days*86400; 293 hours=run/3600; 294 run-=hours*3600; 295 minutes=run/60; 296 run-=minutes*60; 289 run=in; 290 291 days=run/1440; 292 run-=days*1440; 293 hours=run/60; 294 run-=hours*60; 297 295 298 296 if (days>0) { 299 out=owl_sprintf("%i d %2.2i:%2.2i :%2.2li", days, hours, minutes, run);297 out=owl_sprintf("%i d %2.2i:%2.2i", days, hours, run); 300 298 } else { 301 out=owl_sprintf(" %2.2i:%2.2i :%2.2li", hours, minutes, run);299 out=owl_sprintf(" %2.2i:%2.2i", hours, run); 302 300 } 303 301 return(out);
Note: See TracChangeset
for help on using the changeset viewer.