Changeset 2de4f20


Ignore:
Timestamp:
Dec 22, 2003, 8:43:30 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
952bb256
Parents:
b0430a6
Message:
Fixed bug in pseudo logouts
Reformatted some comments
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rb0430a6 r2de4f20  
    34153415      if (notify) {
    34163416        m=owl_malloc(sizeof(owl_message));
    3417         owl_message_create_pseudo_zlogin(m, 1, user, location[0].host, location[0].time, location[0].tty);
     3417        owl_message_create_pseudo_zlogin(m, 1, user, "", "", "");
    34183418        owl_global_messagequeue_addmsg(&g, m);
    34193419      }
  • message.c

    rb0430a6 r2de4f20  
    861861
    862862  /* save the hostname */
    863   owl_function_debugmsg("create_pseudo_login: host is %s", host);
     863  owl_function_debugmsg("create_pseudo_login: host is %s", host ? host : "");
    864864  strcpy(m->hostname, host ? host : "");
    865865  owl_free(longuser);
  • text.c

    rf82e233 r2de4f20  
    77static const char fileIdent[] = "$Id$";
    88
     9/* start with line aline (where the first line is 1) and print 'lines'
     10 *  lines
     11 */
    912int owl_text_truncate_lines(char *out, char *in, int aline, int lines)
    1013{
    11   /* start with line aline (where the first line is 1) and print
    12    *  'lines' lines
    13    */
    1414  char *ptr1, *ptr2;
    1515  int i;
     
    4545}
    4646
     47 
     48/* the first column is column 0.  The message is expected to end in a
     49 * new line for now */
    4750void owl_text_truncate_cols(char *out, char *in, int acol, int bcol)
    4851{
    4952  char *ptr1, *ptr2, *tmpbuff, *last;
    5053  int len;
    51  
    52   /* the first column is column 0 */
    53 
    54   /* the message is expected to end in a new line for now */
    5554
    5655  tmpbuff=owl_malloc(strlen(in)+20);
  • zephyr.c

    rb0430a6 r2de4f20  
    6666}
    6767
     68/* return 0  on success
     69 *        -1 on file error
     70 *        -2 on subscription error
     71 */
    6872int owl_zephyr_loadsubs(char *filename)
    6973{
    7074#ifdef HAVE_LIBZEPHYR
    71   /* return 0  on success
    72    *        -1 on file error
    73    *        -2 on subscription error
    74    */
    7575  FILE *file;
    7676  char *tmp, *start;
     
    475475 
    476476  /* bail if it doesn't look like a message we should reply to.  Some
    477      of this defined by the way zaway(1) works */
     477   * of this defined by the way zaway(1) works
     478   */
    478479  if (strcasecmp(owl_message_get_class(m), "message")) return;
    479480  if (strcasecmp(owl_message_get_recipient(m), ZGetSender())) return;
     
    737738#endif
    738739
    739 /* returns a buffer of subscriptions or an error message.
    740  * Caller must free the return.
     740/* Returns a buffer of subscriptions or an error message.  Caller must
     741 * free the return.
    741742 */
    742743char *owl_zephyr_getsubs()
Note: See TracChangeset for help on using the changeset viewer.