Changeset ae4cd12


Ignore:
Timestamp:
Jun 4, 2003, 2:55:59 PM (21 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:
5789230
Parents:
65ad073
Message:
convert all incoming screenname to have no space.  This is a cheap way
  to solve the space issues for now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    r6a415e9 rae4cd12  
    422422  char buddies[128]; /* this is the new buddy list */
    423423  char profile[256]; /* this is the new profile */
    424   char awaymsg[] = {"blah blah blah Ole! blah blah blah"};
     424  /* char awaymsg[] = {"blah blah blah Ole! blah blah blah"}; */
    425425
    426426  /* Caution: Buddy1 and Buddy2 are real people! (who I don't know) */
     
    11971197{
    11981198  struct owlfaim_priv *priv = (struct owlfaim_priv *)sess->aux_data;
    1199   char *tmpstr;
    12001199  int clienttype = AIM_CLIENTTYPE_UNKNOWN;
    12011200  owl_message *m;
    1202   char *stripmsg;
     1201  char *stripmsg, *nz_screenname;
    12031202  char realmsg[8192+1] = {""};
    12041203  clienttype = aim_fingerprintclient(args->features, args->featureslen);
     
    12411240    int i;
    12421241   
    1243     for (i = 0; i < args->msglen; i += 2) {
     1242    for (i=0; i<args->msglen; i+=2) {
    12441243      fu16_t uni;
    12451244
     
    12761275  /* create a message, and put it on the message queue */
    12771276  stripmsg=owl_text_htmlstrip(realmsg);
     1277  nz_screenname=owl_aim_normalize_screenname(userinfo->sn);
    12781278  m=owl_malloc(sizeof(owl_message));
    1279   owl_message_create_incoming_aim(m, userinfo->sn, owl_global_get_aim_screenname(&g), stripmsg);
     1279  owl_message_create_incoming_aim(m, nz_screenname, owl_global_get_aim_screenname(&g), stripmsg);
    12801280  owl_global_messagequeue_addmsg(&g, m);
    12811281  owl_free(stripmsg);
     1282  owl_free(nz_screenname);
    12821283
    12831284  return(1);
     
    14031404{
    14041405  aim_userinfo_t *userinfo;
     1406  char *nz_screenname;
    14051407
    14061408  va_list ap;
     
    14101412
    14111413  /* first check that we're not still ignoreing login messages */
    1412   if (!owl_timer_is_expired(owl_global_get_aim_login_timer(&g))) return;
    1413  
    1414   owl_buddylist_oncoming(owl_global_get_buddylist(&g), userinfo->sn);
     1414  if (!owl_timer_is_expired(owl_global_get_aim_login_timer(&g))) return(1);
     1415
     1416  nz_screenname=owl_aim_normalize_screenname(userinfo->sn);
     1417  owl_buddylist_oncoming(owl_global_get_buddylist(&g), nz_screenname);
     1418  owl_free(nz_screenname);
    14151419 
    14161420  /*
     
    14351439{
    14361440  aim_userinfo_t *userinfo;
     1441  char *nz_screenname;
    14371442  va_list ap;
    14381443 
     
    14411446  va_end(ap);
    14421447
    1443   owl_buddylist_offgoing(owl_global_get_buddylist(&g), userinfo->sn);
     1448  nz_screenname=owl_aim_normalize_screenname(userinfo->sn);
     1449  owl_buddylist_offgoing(owl_global_get_buddylist(&g), nz_screenname);
     1450  owl_free(nz_screenname);
    14441451
    14451452  /*
Note: See TracChangeset for help on using the changeset viewer.