Changeset 9854278 for message.c


Ignore:
Timestamp:
Dec 23, 2003, 3:22:21 AM (20 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:
e9f239b
Parents:
952bb256
Message:
First pass at AIM away messages.  It is a little different from
  what most clients seem to do, in that an away reply is sent for
  each message received.  Most clients only reply to the first one
  per away-session.  Also, it's completely tied to the zaway
  functions, it should probably be separated out into aaway
  functions with a new "away" function that will get everything.
  Loop detection stuff should work and has been tested, but I'm
  not completely sure I did this right ... so odd behavior should
  be reported.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r2de4f20 r9854278  
    771771
    772772 
    773   /* is the "isprivate" attribute if it's a private zephyr */
     773  /* set the "isprivate" attribute if it's a private zephyr */
    774774  if (!strcasecmp(n->z_recipient, owl_zephyr_get_sender())) {
    775775    owl_message_set_isprivate(m);
     776  }
     777
     778  /* set the "isauto" attribute if it's an autoreply */
     779  if (!strcasecmp(n->z_message, "Automated reply:") ||
     780      !strcasecmp(n->z_opcode, "auto")) {
     781    owl_message_set_attribute(m, "isauto", "");
    776782  }
    777783
Note: See TracChangeset for help on using the changeset viewer.