]> andersk Git - libfaim.git/blobdiff - aim_rxhandlers.c
Forgot this.
[libfaim.git] / aim_rxhandlers.c
index febeac446e4ba7ee12b8b3c7e453c3219f5c11dd..7c0b00c593ca92ac06be1d819eef80ec6200259f 100644 (file)
@@ -342,7 +342,9 @@ int aim_rxdispatch(struct aim_session_t *sess)
        if (head == 0x00000001) {
          faimdprintf(1, "got connection ack on auth line\n");
          workingPtr->handled = 1;
-       } else {
+       } else if (workingPtr->hdr.oscar.type == 0x0004) {
+         workingPtr->handled = aim_authparse(sess, workingPtr);
+        } else {
          u_short family,subtype;
          
          family = aimutil_get16(workingPtr->data);
@@ -364,10 +366,7 @@ int aim_rxdispatch(struct aim_session_t *sess)
 #else  
            /* XXX: this isnt foolproof */
          case 0x0001:
-           if (subtype == 0x0003)
-             workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, AIM_CB_FAM_GEN, AIM_CB_GEN_SERVERREADY, workingPtr);
-           else
-             workingPtr->handled = aim_authparse(sess, workingPtr);
+           workingPtr->handled = aim_callhandler_noparam(sess, workingPtr->conn, AIM_CB_FAM_GEN, AIM_CB_GEN_SERVERREADY, workingPtr);
            break;
          case 0x0007:
            if (subtype == 0x0005)
This page took 0.043213 seconds and 4 git commands to generate.