Changeset 3abf28b for aim.c


Ignore:
Timestamp:
Jun 1, 2003, 9:11:25 PM (18 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:
75e3879
Parents:
df0d93a
Message:
make smartnarrow work for AIM
  (though it will crash on names with spaces)
don't set an away message by default
better default format
bold them like personal zephyrs
same with terminal bell
do some basic HTML stripping (buggy, in progress)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    r0ff8fb57 r3abf28b  
    411411
    412412  /*aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_BUDDYICON | AIM_CAPS_CHAT | AIM_CAPS_GETFILE | AIM_CAPS_SENDFILE | AIM_CAPS_IMIMAGE | AIM_CAPS_GAMES | AIM_CAPS_SAVESTOCKS | AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_ICQ | AIM_CAPS_ICQUNKNOWN | AIM_CAPS_ICQRTF | AIM_CAPS_ICQSERVERRELAY | AIM_CAPS_TRILLIANCRYPT); */
    413   aim_bos_setprofile(sess, fr->conn, profile, awaymsg, AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_CHAT );
     413  aim_bos_setprofile(sess, fr->conn, profile, "", AIM_CAPS_SENDBUDDYLIST | AIM_CAPS_CHAT );
    414414  aim_bos_reqbuddyrights(sess, fr->conn);
    415415
     
    951951  } else if (strstr(tmpstr, "haveicon") && priv->buddyicon) {
    952952    struct aim_sendimext_args args;
    953     static const char iconmsg[] = {"I have an icon"};
     953    /* static const char iconmsg[] = {"I have an icon"}; */
     954    static const char iconmsg[] = {""};
    954955   
    955956    args.destsn = userinfo->sn;
     
    961962    args.iconsum = priv->buddyiconsum;
    962963   
    963     aim_send_im_ext(sess, &args);
     964    /* aim_send_im_ext(sess, &args); */
    964965   
    965966  } else if (strstr(tmpstr, "sendbin")) {
     
    11701171  int clienttype = AIM_CLIENTTYPE_UNKNOWN;
    11711172  owl_message *m;
     1173  char *stripmsg;
    11721174  char realmsg[8192+1] = {""};
    11731175  clienttype = aim_fingerprintclient(args->features, args->featureslen);
     
    12441246
    12451247  /* create a message, and put it on the message queue */
     1248  stripmsg=owl_text_htmlstrip(realmsg);
    12461249  m=owl_malloc(sizeof(owl_message));
    1247   owl_message_create_aim(m, userinfo->sn, owl_global_get_aim_screenname(&g), realmsg);
    1248   owl_message_set_direction_in(m);
     1250  owl_message_create_incoming_aim(m, userinfo->sn, owl_global_get_aim_screenname(&g), stripmsg);
    12491251  owl_global_messagequeue_addmsg(&g, m);
     1252  owl_free(stripmsg);
    12501253 
    12511254  /* printf("icbm: message: %s\n", realmsg); */
Note: See TracChangeset for help on using the changeset viewer.