comparison libfaim/aim_rxhandlers.c @ 741:58a6e6e26695

[gaim-migrate @ 751] oscar logins work better (?), aliases in convo windows. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 22 Aug 2000 23:38:47 +0000
parents 58106806ac2b
children 72e556f6b99d
comparison
equal deleted inserted replaced
740:01d3c96867e2 741:58a6e6e26695
350 family = aimutil_get16(workingPtr->data); 350 family = aimutil_get16(workingPtr->data);
351 subtype = aimutil_get16(workingPtr->data+2); 351 subtype = aimutil_get16(workingPtr->data+2);
352 352
353 switch (family) { 353 switch (family) {
354 /* New login protocol */ 354 /* New login protocol */
355 #ifdef SNACLOGIN
356 case 0x0017: 355 case 0x0017:
357 if (subtype == 0x0001) 356 if (subtype == 0x0001)
358 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, 0x0017, 0x0001, workingPtr); 357 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, 0x0017, 0x0001, workingPtr);
359 else if (subtype == 0x0003) 358 else if (subtype == 0x0003)
360 workingPtr->handled = aim_authparse(sess, workingPtr); 359 workingPtr->handled = aim_authparse(sess, workingPtr);
361 else if (subtype == 0x0007) 360 else if (subtype == 0x0007)
362 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, 0x0017, 0x0007, workingPtr); 361 workingPtr->handled = aim_authkeyparse(sess, workingPtr);
363 else 362 else
364 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, 0x0017, 0xffff, workingPtr); 363 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, 0x0017, 0xffff, workingPtr);
365 break; 364 break;
366 #else 365 case 0x0007:
367 /* XXX: this isnt foolproof */ 366 if (subtype == 0x0005)
368 case 0x0001: 367 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, AIM_CB_FAM_ADM, AIM_CB_ADM_INFOCHANGE_REPLY, workingPtr);
369 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, AIM_CB_FAM_GEN, AIM_CB_GEN_SERVERREADY, workingPtr); 368 break;
370 break; 369 case AIM_CB_FAM_SPECIAL:
371 case 0x0007: 370 if (subtype == AIM_CB_SPECIAL_DEBUGCONN_CONNECT) {
372 if (subtype == 0x0005) 371 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, family, subtype, workingPtr);
373 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, AIM_CB_FAM_ADM, AIM_CB_ADM_INFOCHANGE_REPLY, workingPtr); 372 break;
374 break; 373 } /* others fall through */
375 case AIM_CB_FAM_SPECIAL: 374 default:
376 if (subtype == AIM_CB_SPECIAL_DEBUGCONN_CONNECT) { 375 #if 0
377 workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, family, subtype, workingPtr); 376 /* Old login protocol */
378 break; 377 /* any user callbacks will be called from here */
379 } /* others fall through */ 378 workingPtr->handled = aim_authparse(sess, workingPtr);
380 default: 379 break;
381 /* Old login protocol */
382 /* any user callbacks will be called from here */
383 workingPtr->handled = aim_authparse(sess, workingPtr);
384 #endif 380 #endif
385 } 381 }
386 } 382 }
387 break; 383 break;
388 } 384 }