Changeset 4485285 for aim.c


Ignore:
Timestamp:
Jan 12, 2013, 1:43:31 PM (12 years ago)
Author:
Jason Gross <jasongross9@gmail.com>
Parents:
4626016 (diff), 7869e48 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:
Merge 7869e4801e577613b7db987d11bddb0a31fe755c into 46260161946c87dfed4fef9e3223b2327895f139
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    rf271129 r7869e48  
    107107   * future.  It's still called by Owl.
    108108   */
    109      
     109
    110110}
    111111
     
    131131  aim_setdebuggingcb(sess, faimtest_debugcb);
    132132  aim_tx_setenqueue(sess, AIM_TX_IMMEDIATE, NULL);
    133  
     133
    134134  /* this will leak, I know and just don't care right now */
    135135  priv=g_new0(struct owlfaim_priv, 1);
     
    165165  */
    166166
    167    
     167
    168168  aim_conn_addhandler(sess, conn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_FLAPVER, faimtest_flapversion, 0);
    169169  aim_conn_addhandler(sess, conn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_CONNCOMPLETE, faimtest_conncomplete, 0);
     
    174174  /* aim_conn_addhandler(sess, conn, 0x0017, 0x0007, gaim_parse_login, 0); */
    175175  /* aim_conn_addhandler(sess, conn, 0x0017, 0x0003, gaim_parse_auth_resp, 0); */
    176    
     176
    177177  /* start processing AIM events */
    178178  owl_global_set_doaimevents(&g);
     
    338338
    339339  owl_function_debugmsg("owl_aim_search: doing search for %s", email);
    340   ret=aim_search_address(owl_global_get_aimsess(&g), 
     340  ret=aim_search_address(owl_global_get_aimsess(&g),
    341341                         aim_getconn_type(owl_global_get_aimsess(&g), AIM_CONN_TYPE_BOS),
    342342                         email);
     
    358358    len=499;
    359359  }
    360    
     360
    361361  aim_locate_setprofile(owl_global_get_aimsess(&g),
    362362                        NULL, NULL, 0,
     
    367367  aim_bos_setprofile(owl_global_get_aimsess(&g),
    368368                     owl_global_get_bosconn(&g),
    369                      NULL, NULL, 0, "us-ascii", msg, 
     369                     NULL, NULL, 0, "us-ascii", msg,
    370370                     strlen(msg), 0);
    371371  */
     
    421421                               aim_getconn_type(owl_global_get_aimsess(&g), AIM_CONN_TYPE_CHATNAV), name, exchange);
    422422   ret=aim_chat_join(owl_global_get_aimsess(&g), owl_global_get_bosconn(&g), exchange, name, 0x0000);
    423  
     423
    424424}
    425425
     
    468468  if (selstat == -1) {
    469469    owl_aim_logged_out();
    470   } else if (selstat == 0) { 
     470  } else if (selstat == 0) {
    471471    /* no events pending */
    472472  } else if (selstat == 1) { /* outgoing data pending */
     
    474474  } else if (selstat == 2) { /* incoming data pending */
    475475    /* printf("selstat == 2\n"); */
    476    
     476
    477477    if (aim_get_command(aimsess, waitingconn) >= 0) {
    478478      aim_rxdispatch(aimsess);
     
    510510  struct owlfaim_priv *priv = sess->aux_data;
    511511  struct client_info_s info = CLIENTINFO_AIM_KNOWNGOOD;
    512    
     512
    513513  const char *key;
    514514  va_list ap;
     
    519519
    520520  aim_send_login(sess, fr->conn, priv->screenname, priv->password, &info, key);
    521  
     521
    522522  return(1);
    523523}
     
    649649  aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_LOK, 0x0003, faimtest_parse_searchreply, 0);
    650650  */
    651  
     651
    652652  aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_MSG, AIM_CB_MSG_ERROR,              faimtest_parse_msgerr, 0);
    653653  aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_LOC, AIM_CB_LOC_USERINFO,           faimtest_parse_userinfo, 0);
     
    733733  fu16_t code;
    734734  const char *msg;
    735  
     735
    736736  va_start(ap, fr);
    737737  code = va_arg(ap, int);
    738738  msg = va_arg(ap, const char *);
    739739  va_end(ap);
    740  
     740
    741741  owl_function_error("faimtest_parse_connerr: Code 0x%04x: %s\n", code, msg);
    742742  aim_conn_kill(sess, &fr->conn); /* this will break the main loop */
    743  
     743
    744744  priv->connected = 0;
    745  
     745
    746746  return 1;
    747747}
     
    751751  int status;
    752752  va_list ap;
    753  
     753
    754754  va_start(ap, fr);
    755755  status = va_arg(ap, int); /* status code of confirmation request */
     
    758758  /* owl_function_debugmsg("faimtest_accountconfirm: Code 0x%04x: %s\n", code, msg); */
    759759  owl_function_debugmsg("faimtest_accountconfirm: account confirmation returned status 0x%04x (%s)\n", status, (status==0x0000)?"email sent":"unknown");
    760  
     760
    761761  return 1;
    762762}
     
    768768  const char *val;
    769769  va_list ap;
    770  
     770
    771771  va_start(ap, fr);
    772772  change = va_arg(ap, int);
     
    777777  str = va_arg(ap, int);
    778778  va_end(ap);
    779  
     779
    780780  owl_function_debugmsg("faimtest_infochange: info%s: perms = %d, type = %x, length = %d, val = %s", change?" change":"", perms, type, length, str?val:"(not string)");
    781  
     781
    782782  return(1);
    783783}
     
    790790
    791791  owl_function_debugmsg("faimtest_handledirect:");
    792  
     792
    793793  va_start(ap, fr);
    794794  redir = va_arg(ap, struct aim_redirect_data *);
    795  
     795
    796796  if (redir->group == 0x0005) {  /* Adverts */
    797    
     797
    798798  } else if (redir->group == 0x0007) {  /* Authorizer */
    799799    aim_conn_t *tstconn;
    800800
    801801    owl_function_debugmsg("faimtest_handledirect: autorizer");
    802    
     802
    803803    tstconn = aim_newconn(sess, AIM_CONN_TYPE_AUTH, redir->ip);
    804804    if (!tstconn || (tstconn->status & AIM_CONN_STATUS_RESOLVERR)) {
     
    832832  struct aim_icbmparameters *params;
    833833  va_list ap;
    834  
     834
    835835  va_start(ap, fr);
    836836  params = va_arg(ap, struct aim_icbmparameters *);
    837837  va_end(ap);
    838  
     838
    839839  owl_function_debugmsg("faimtest_icbmparaminfo: ICBM Parameters: maxchannel = %d, default flags = 0x%08x, max msg len = %d, max sender evil = %f, max reciever evil = %f, min msg interval = %u",
    840840                       params->maxchan, params->flags, params->maxmsglen, ((float)params->maxsenderwarn)/10.0, ((float)params->maxrecverwarn)/10.0, params->minmsginterval);
    841      
     841
    842842  /*
    843843  * Set these to your taste, or client medium.  Setting minmsginterval
     
    850850  /* aim_seticbmparam(sess, params); */
    851851  aim_im_setparams(sess, params);
    852  
     852
    853853  return 1;
    854854}
     
    858858  va_list ap;
    859859  fu16_t maxbuddies, maxwatchers;
    860  
     860
    861861  va_start(ap, fr);
    862862  maxbuddies = va_arg(ap, int);
    863863  maxwatchers = va_arg(ap, int);
    864864  va_end(ap);
    865  
     865
    866866  owl_function_debugmsg("faimtest_parse_buddyrights: Max buddies = %d / Max watchers = %d\n", maxbuddies, maxwatchers);
    867  
     867
    868868  /* aim_ssi_reqrights(sess, fr->conn); */
    869869  aim_ssi_reqrights(sess);
    870  
     870
    871871  return 1;
    872872}
     
    876876  va_list ap;
    877877  fu16_t maxpermits, maxdenies;
    878  
     878
    879879  va_start(ap, fr);
    880880  maxpermits = va_arg(ap, int);
    881881  maxdenies = va_arg(ap, int);
    882882  va_end(ap);
    883  
     883
    884884  owl_function_debugmsg("faimtest_bosrights: Max permit = %d / Max deny = %d\n", maxpermits, maxdenies);
    885885  aim_clientready(sess, fr->conn);
     
    893893  va_list ap;
    894894  fu16_t maxsiglen;
    895  
     895
    896896  va_start(ap, fr);
    897897  maxsiglen = va_arg(ap, int);
     
    899899
    900900  owl_function_debugmsg("faimtest_locrights: rights: max signature length = %d\n", maxsiglen);
    901  
     901
    902902  return(1);
    903903}
     
    944944
    945945  owl_function_debugmsg("faimtest_parse_motd: %s (%d / %s)\n", msg?msg:"nomsg", id, (id < codeslen)?codes[id]:"unknown");
    946  
     946
    947947  return 1;
    948948}
     
    960960  if (flags & AIM_FLAG_WIRELESS) printf("WIRELESS ");
    961961  if (flags & AIM_FLAG_ACTIVEBUDDY) printf("ACTIVEBUDDY ");
    962  
     962
    963963  return;
    964964}
     
    10731073static int faimtest_parse_incoming_im_chan2(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_t *userinfo, struct aim_incomingim_ch2_args *args)
    10741074{
    1075   /* 
     1075  /*
    10761076  printf("rendezvous: source sn = %s\n", userinfo->sn);
    10771077  printf("rendezvous: \twarnlevel = %f\n", aim_userinfo_warnlevel(userinfo));
     
    10791079  printuserflags(userinfo->flags);
    10801080  printf("\n");
    1081  
     1081
    10821082  printf("rendezvous: \tonlinesince = %lu\n", userinfo->onlinesince);
    10831083  printf("rendezvous: \tidletime = 0x%04x\n", userinfo->idletime);
    1084  
     1084
    10851085  printf("rendezvous: message/description = %s\n", args->msg);
    10861086  printf("rendezvous: encoding = %s\n", args->encoding);
    10871087  printf("rendezvous: language = %s\n", args->language);
    10881088  */
    1089  
     1089
    10901090  if (args->reqclass == AIM_CAPS_SENDFILE) {
    10911091    owl_function_debugmsg("faimtest_parse_incoming_im_chan2: send file!");
     
    11191119  va_list ap;
    11201120  int ret = 0;
    1121  
     1121
    11221122  va_start(ap, fr);
    11231123  channel = (fu16_t)va_arg(ap, unsigned int);
    11241124  userinfo = va_arg(ap, aim_userinfo_t *);
    1125  
     1125
    11261126  if (channel == 1) {
    11271127    struct aim_incomingim_ch1_args *args;
     
    11511151
    11521152  nz_screenname=owl_aim_normalize_screenname(userinfo->sn);
    1153  
     1153
    11541154  owl_buddylist_oncoming(owl_global_get_buddylist(&g), nz_screenname);
    11551155
     
    11731173    owl_function_debugmsg("parse_oncoming sn: %s away flag!", userinfo->sn);
    11741174  }
    1175  
     1175
    11761176  owl_function_debugmsg("parse_oncoming sn: %s idle: %i", userinfo->sn, userinfo->idletime);
    1177    
     1177
    11781178  g_free(nz_screenname);
    1179  
     1179
    11801180  /*
    11811181    printf("%ld  %s is now online (flags: %04x = %s%s%s%s%s%s%s%s) (caps = %s = 0x%08lx)\n",
     
    12011201  char *nz_screenname;
    12021202  va_list ap;
    1203  
     1203
    12041204  va_start(ap, fr);
    12051205  userinfo = va_arg(ap, aim_userinfo_t *);
     
    12291229         userinfo->capabilities);
    12301230  */
    1231  
     1231
    12321232  return 1;
    12331233}
     
    12381238  va_list ap;
    12391239  fu16_t reason;
    1240  
     1240
    12411241  va_start(ap, fr);
    12421242  reason = (fu16_t)va_arg(ap, unsigned int);
    12431243  va_end(ap);
    1244  
     1244
    12451245  /* printf("snac threw error (reason 0x%04x: %s)\n", reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */
    12461246  if (reason<msgerrreasonslen) owl_function_error("%s", msgerrreasons[reason]);
    1247  
     1247
    12481248  return 1;
    12491249}
     
    12541254  const char *destsn;
    12551255  fu16_t reason;
    1256  
     1256
    12571257  va_start(ap, fr);
    12581258  reason = (fu16_t)va_arg(ap, unsigned int);
    12591259  destsn = va_arg(ap, const char *);
    12601260  va_end(ap);
    1261  
     1261
    12621262  /* printf("message to %s bounced (reason 0x%04x: %s)\n", destsn, reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */
    12631263  if (reason<msgerrreasonslen) owl_function_error("%s", msgerrreasons[reason]);
     
    12661266    owl_function_adminmsg("", "Could not send AIM message, user not logged on");
    12671267  }
    1268  
     1268
    12691269  return 1;
    12701270}
     
    12751275  const char *destsn;
    12761276  fu16_t reason;
    1277  
     1277
    12781278  va_start(ap, fr);
    12791279  reason = (fu16_t)va_arg(ap, unsigned int);
    12801280  destsn = va_arg(ap, const char *);
    12811281  va_end(ap);
    1282  
     1282
    12831283  /* printf("user information for %s unavailable (reason 0x%04x: %s)\n", destsn, reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */
    12841284  if (reason<msgerrreasonslen) owl_function_error("%s", msgerrreasons[reason]);
    1285  
     1285
    12861286  return 1;
    12871287}
     
    12971297  };
    12981298  static int missedreasonslen = 5;
    1299  
     1299
    13001300  va_list ap;
    13011301  fu16_t chan, nummissed, reason;
    13021302  aim_userinfo_t *userinfo;
    1303  
     1303
    13041304  va_start(ap, fr);
    13051305  chan = (fu16_t)va_arg(ap, unsigned int);
     
    13081308  reason = (fu16_t)va_arg(ap, unsigned int);
    13091309  va_end(ap);
    1310  
     1310
    13111311  owl_function_debugmsg("faimtest_parse_misses: missed %d messages from %s on channel %d (reason %d: %s)\n", nummissed, userinfo->sn, chan, reason, (reason<missedreasonslen)?missedreasons[reason]:"unknown");
    1312  
     1312
    13131313  return 1;
    13141314}
     
    13221322  fu16_t type;
    13231323  const char *sn = NULL;
    1324  
     1324
    13251325  va_start(ap, fr);
    13261326  type = (fu16_t)va_arg(ap, unsigned int);
    13271327  sn = va_arg(ap, const char *);
    13281328  va_end(ap);
    1329  
     1329
    13301330  owl_function_debugmsg("faimtest_parse_msgack: 0x%04x / %s\n", type, sn);
    1331  
     1331
    13321332  return 1;
    13331333}
     
    13461346  fu32_t windowsize, clear, alert, limit, disconnect;
    13471347  fu32_t currentavg, maxavg;
    1348  
    1349   va_start(ap, fr); 
    1350  
     1348
     1349  va_start(ap, fr);
     1350
    13511351  /* See code explanations below */
    13521352  code = (fu16_t)va_arg(ap, unsigned int);
    1353  
     1353
    13541354  /*
    13551355   * See comments above aim_parse_ratechange_middle() in aim_rxhandlers.c.
    13561356   */
    13571357  rateclass = (fu16_t)va_arg(ap, unsigned int);
    1358  
    1359   /*
    1360    * Not sure what this is exactly.  I think its the temporal 
     1358
     1359  /*
     1360   * Not sure what this is exactly.  I think its the temporal
    13611361   * relation factor (ie, how to make the rest of the numbers
    1362    * make sense in the real world). 
     1362   * make sense in the real world).
    13631363   */
    13641364  windowsize = va_arg(ap, fu32_t);
    1365  
     1365
    13661366  /* Explained below */
    13671367  clear = va_arg(ap, fu32_t);
     
    13711371  currentavg = va_arg(ap, fu32_t);
    13721372  maxavg = va_arg(ap, fu32_t);
    1373  
    1374   va_end(ap);
    1375  
     1373
     1374  va_end(ap);
     1375
    13761376  owl_function_debugmsg("faimtest_parse_ratechange: rate %s (rate class 0x%04x): curavg = %u, maxavg = %u, alert at %u, clear warning at %u, limit at %u, disconnect at %u (window size = %u)",
    13771377                        (code < 5)?codes[code]:"invalid",
     
    13891389  fu16_t newevil;
    13901390  aim_userinfo_t *userinfo;
    1391  
     1391
    13921392  va_start(ap, fr);
    13931393  newevil = (fu16_t)va_arg(ap, unsigned int);
    13941394  userinfo = va_arg(ap, aim_userinfo_t *);
    13951395  va_end(ap);
    1396  
     1396
    13971397  /*
    13981398   * Evil Notifications that are lacking userinfo->sn are anon-warns
     
    14041404   */
    14051405  owl_function_debugmsg("faimtest_parse_evilnotify: new value = %2.1f%% (caused by %s)\n", ((float)newevil)/10, (userinfo && strlen(userinfo->sn))?userinfo->sn:"anonymous");
    1406  
     1406
    14071407  return 1;
    14081408}
     
    14141414  int num, i;
    14151415  GPtrArray *list;
    1416  
     1416
    14171417  va_start(ap, fr);
    14181418  address = va_arg(ap, const char *);
     
    14221422
    14231423  list = g_ptr_array_new();
    1424  
     1424
    14251425  owl_function_debugmsg("faimtest_parse_searchreply: E-Mail Search Results for %s: ", address);
    14261426  for (i=0; i<num; i++) {
     
    14371437  va_list ap;
    14381438  const char *address;
    1439  
     1439
    14401440  va_start(ap, fr);
    14411441  address = va_arg(ap, const char *);
     
    14441444  owl_function_error("No results searching for %s", address);
    14451445  owl_function_debugmsg("faimtest_parse_searcherror: E-Mail Search Results for %s: No Results or Invalid Email\n", address);
    1446  
     1446
    14471447  return(1);
    14481448}
     
    14531453  const char *msg, *url;
    14541454  fu16_t width, height, delay;
    1455  
     1455
    14561456  va_start(ap, fr);
    14571457  msg = va_arg(ap, const char *);
     
    14611461  delay = va_arg(ap, unsigned int);
    14621462  va_end(ap);
    1463  
     1463
    14641464  owl_function_debugmsg("handlepopup: (%dx%x:%d) %s (%s)\n", width, height, delay, msg, url);
    1465  
     1465
    14661466  return 1;
    14671467}
     
    14791479  const char *bosip;
    14801480  fu8_t *cookie;
    1481  
     1481
    14821482  va_start(ap, fr);
    14831483  bosip = va_arg(ap, const char *);
    14841484  cookie = va_arg(ap, fu8_t *);
    14851485  va_end(ap);
    1486  
     1486
    14871487  owl_function_debugmsg("migrate: migration in progress -- new BOS is %s -- disconnecting", bosip);
    14881488  aim_conn_kill(sess, &fr->conn);
    1489  
     1489
    14901490  if (!(bosconn = aim_newconn(sess, AIM_CONN_TYPE_BOS, bosip))) {
    14911491    owl_function_debugmsg("migrate: could not connect to BOS: internal error");
    14921492    return 1;
    1493   } else if (bosconn->status & AIM_CONN_STATUS_CONNERR) {       
     1493  } else if (bosconn->status & AIM_CONN_STATUS_CONNERR) {
    14941494    owl_function_debugmsg("migrate: could not connect to BOS");
    14951495    aim_conn_kill(sess, &bosconn);
    14961496    return 1;
    14971497  }
    1498  
     1498
    14991499  /* Login will happen all over again. */
    15001500  addcb_bos(sess, bosconn);
     
    15081508  /* aim_ssi_reqdata(sess, fr->conn, 0, 0x0000); */
    15091509  aim_ssi_reqdata(sess);
    1510  
     1510
    15111511  return(1);
    15121512}
     
    15231523  struct aim_ssi_item *l;
    15241524  */
    1525  
     1525
    15261526  va_start(ap, fr);
    15271527  fmtver = va_arg(ap, unsigned int);
     
    15301530  list = va_arg(ap, struct aim_ssi_item *);
    15311531  va_end(ap);
    1532  
     1532
    15331533  owl_function_debugmsg("ssiddata: got SSI data (0x%02x, %d items, %u)", fmtver, itemcount, stamp);
    15341534  /*
     
    15401540  */
    15411541  aim_ssi_enable(sess);
    1542  
     1542
    15431543  return 1;
    15441544}
     
    15561556  va_list ap;
    15571557  struct aim_icq_offlinemsg *msg;
    1558  
     1558
    15591559  va_start(ap, fr);
    15601560  msg = va_arg(ap, struct aim_icq_offlinemsg *);
    15611561  va_end(ap);
    1562  
     1562
    15631563  if (msg->type == 0x0001) {
    15641564    owl_function_debugmsg("offlinemsg: from %u at %d/%d/%d %02d:%02d : %s", msg->sender, msg->year, msg->month, msg->day, msg->hour, msg->minute, msg->msg);
     
    15861586  int count;
    15871587  /* int i; */
    1588  
     1588
    15891589  va_start(ap, fr);
    15901590  count = va_arg(ap, int);
     
    16081608  /* int i; */
    16091609
    1610  
     1610
    16111611  va_start(ap, fr);
    16121612  count = va_arg(ap, int);
    16131613  userinfo = va_arg(ap, aim_userinfo_t *);
    16141614  va_end(ap);
    1615  
     1615
    16161616  /*
    16171617    printf("chat: %s:  Some occupants have left:\n", aim_chat_getname(fr->conn));
    1618    
     1618
    16191619    for (i = 0; i < count; i++)
    16201620    printf("chat: %s: \t%s\n", aim_chat_getname(fr->conn), userinfo[i].sn);
     
    16351635  const char *croomname;
    16361636  /* int i; */
    1637  
     1637
    16381638  croomname = aim_chat_getname(fr->conn);
    1639  
     1639
    16401640  va_start(ap, fr);
    16411641  roominfo = va_arg(ap, struct aim_chat_roominfo *);
     
    16621662  for (i = 0; i < usercount; i++)
    16631663    printf("chat: %s:  \t\t%s\n", croomname, userinfo[i].sn);
    1664  
    1665   owl_function_debugmsg("chat: %s:  \tRoom flags: 0x%04x (%s%s%s%s)\n", 
     1664
     1665  owl_function_debugmsg("chat: %s:  \tRoom flags: 0x%04x (%s%s%s%s)\n",
    16661666         croomname, flags,
    16671667         (flags & AIM_CHATROOM_FLAG_EVILABLE) ? "Evilable, " : "",
     
    16751675  printf("chat: %s:  \tMax visible message length: %d bytes\n", croomname, maxvisiblemsglen);
    16761676  */
    1677  
     1677
    16781678  return(1);
    16791679}
     
    16851685  const char *msg;
    16861686  char tmpbuf[1152];
    1687  
    1688   va_start(ap, fr);
    1689   userinfo = va_arg(ap, aim_userinfo_t *);     
     1687
     1688  va_start(ap, fr);
     1689  userinfo = va_arg(ap, aim_userinfo_t *);
    16901690  msg = va_arg(ap, const char *);
    16911691  va_end(ap);
     
    16961696  printf("chat: %s: incoming msg from %s: %s\n", aim_chat_getname(fr->conn), userinfo->sn, msg);
    16971697  */
    1698  
     1698
    16991699  /*
    17001700   * Do an echo for testing purposes.  But not for ourselves ("oops!")
     
    17041704    aim_chat_send_im(sess, fr->conn, 0, tmpbuf, strlen(tmpbuf));
    17051705  }
    1706  
     1706
    17071707  return 1;
    17081708}
     
    17171717  aim_conn_addhandler(sess, fr->conn, AIM_CB_FAM_CHT, AIM_CB_CHT_ROOMINFOUPDATE, faimtest_chat_infoupdate, 0);
    17181718  aim_conn_addhandler(sess, fr->conn, AIM_CB_FAM_CHT, AIM_CB_CHT_INCOMINGMSG, faimtest_chat_incomingmsg, 0);
    1719  
     1719
    17201720  aim_clientready(sess, fr->conn);
    1721  
     1721
    17221722  owl_function_debugmsg("Chat ready");
    17231723
     
    17351735
    17361736  owl_function_debugmsg("in faimtest_chatnav_redirect");
    1737  
     1737
    17381738  tstconn = aim_newconn(sess, AIM_CONN_TYPE_CHATNAV, redir->ip);
    17391739  if (!tstconn || (tstconn->status & AIM_CONN_STATUS_RESOLVERR)) {
     
    17431743    return;
    17441744  }
    1745  
     1745
    17461746  aim_conn_addhandler(sess, tstconn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_CONNCOMPLETE, faimtest_conncomplete, 0);
    17471747  aim_conn_addhandler(sess, tstconn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_CONNINITDONE, conninitdone_chat, 0);
     
    17571757
    17581758  owl_function_debugmsg("in chat_redirect");
    1759  
     1759
    17601760  tstconn = aim_newconn(sess, AIM_CONN_TYPE_CHAT, redir->ip);
    17611761  if (!tstconn || (tstconn->status & AIM_CONN_STATUS_RESOLVERR)) {
    17621762    /* printf("unable to connect to chat server\n"); */
    17631763    if (tstconn) aim_conn_kill(sess, &tstconn);
    1764     return; 
    1765   }             
     1764    return;
     1765  }
    17661766  /* printf("chat: connected to %s instance %d on exchange %d\n", redir->chat.room, redir->chat.instance, redir->chat.exchange); */
    1767  
     1767
    17681768  /*
    17691769   * We must do this to attach the stored name to the connection!
     
    17731773  aim_conn_addhandler(sess, tstconn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_CONNINITDONE, conninitdone_chat, 0);
    17741774  aim_sendcookie(sess, tstconn, redir->cookielen, redir->cookie);
    1775   return;       
     1775  return;
    17761776}
    17771777
Note: See TracChangeset for help on using the changeset viewer.