Changeset c453ada for message.c


Ignore:
Timestamp:
May 31, 2008, 11:40:29 PM (13 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
barnowl_perlaim
Children:
7a1c90d
Parents:
b1fd36e
Message:
Remove aim.c. buddylist.c, buddy.c, libfaim, and everything that uses them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r07bfbc2 rc453ada  
    575575}
    576576
    577 int owl_message_is_from_me(owl_message *m)
    578 {
    579   if (owl_message_is_type_zephyr(m)) {
    580     if (!strcasecmp(owl_message_get_sender(m), owl_zephyr_get_sender())) {
    581       return(1);
    582     } else {
    583       return(0);
    584     }
    585   } else if (owl_message_is_type_aim(m)) {
    586     if (!strcasecmp(owl_message_get_sender(m), owl_global_get_aim_screenname(&g))) {
    587       return(1);
    588     } else {
    589       return(0);
    590     }
    591   } else if (owl_message_is_type_admin(m)) {
    592     return(0);
    593   }
    594   return(0);
    595 }
    596 
    597577int owl_message_is_mail(owl_message *m)
    598578{
     
    615595      return(0);
    616596    }
    617   }
    618   return(0);
    619 }
    620 
    621 int owl_message_is_burningears(owl_message *m)
    622 {
    623   /* we should add a global to cache the short zsender */
    624   char sender[LINE], *ptr;
    625 
    626   /* if the message is from us or to us, it doesn't count */
    627   if (owl_message_is_from_me(m) || owl_message_is_private(m)) return(0);
    628 
    629   if (owl_message_is_type_zephyr(m)) {
    630     strcpy(sender, owl_zephyr_get_sender());
    631     ptr=strchr(sender, '@');
    632     if (ptr) *ptr='\0';
    633   } else if (owl_message_is_type_aim(m)) {
    634     strcpy(sender, owl_global_get_aim_screenname(&g));
    635   } else {
    636     return(0);
    637   }
    638 
    639   if (stristr(owl_message_get_body(m), sender)) {
    640     return(1);
    641597  }
    642598  return(0);
Note: See TracChangeset for help on using the changeset viewer.