Changeset aa5f725 for message.c


Ignore:
Timestamp:
Jun 3, 2003, 3:40:28 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:
fd93b41
Parents:
651560f
Message:
added buddylists
added the 'alist' command to print logged in aimusers
added the 'blist' command which prints buddies logged in from all
  protocols.
'l' is now bound to 'blist' by default
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r3abf28b raa5f725  
    579579 
    580580  owl_free(indent);
     581}
     582
     583/* For login direction == 0
     584 * For logout direction == 1
     585 */
     586void owl_message_create_aim_login(owl_message *m, int direction, char *screenname)
     587{
     588  owl_message_init(m);
     589  owl_message_set_body(m, "");
     590  owl_message_set_sender(m, screenname);
     591  owl_message_set_recipient(m, owl_global_get_aim_screenname(&g));
     592  owl_message_set_type_aim(m);
     593  owl_message_set_direction_in(m);
     594
     595  owl_fmtext_init_null(&(m->fmtext));
     596  owl_fmtext_append_normal(&(m->fmtext), OWL_TABSTR);
     597  if (direction==0) {
     598    owl_fmtext_append_bold(&(m->fmtext), "AIM LOGIN");
     599  } else if (direction==1) {
     600    owl_fmtext_append_bold(&(m->fmtext), "AIM LOGOUT");
     601  }
     602  owl_fmtext_append_normal(&(m->fmtext), " for ");
     603  owl_fmtext_append_normal(&(m->fmtext), screenname);
     604  owl_fmtext_append_normal(&(m->fmtext), "\n");
    581605}
    582606
Note: See TracChangeset for help on using the changeset viewer.