]> andersk Git - libfaim.git/blobdiff - src/admin.c
- Wed May 9 15:21:51 PDT 2001
[libfaim.git] / src / admin.c
index 22419d8554d87a46e847e2cf7cc707ca7935bf4d..4a461b6aee09427b57715766b971a0d1b8550881 100644 (file)
@@ -24,7 +24,7 @@ static int infochange(struct aim_session_t *sess, aim_module_t *mod, struct comm
     i += 2;
 
     while (tlvcount) {
-      rxcallback_t userfunc;
+      aim_rxcallback_t userfunc;
       struct aim_tlv_t *tlv;
       int str = 0;
 
@@ -58,7 +58,7 @@ static int infochange(struct aim_session_t *sess, aim_module_t *mod, struct comm
 
 static int accountconfirm(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen)
 {
-  rxcallback_t userfunc;
+  aim_rxcallback_t userfunc;
   int status;
 
   status = aimutil_get16(data);
@@ -72,14 +72,7 @@ static int accountconfirm(struct aim_session_t *sess, aim_module_t *mod, struct
 static int snachandler(struct aim_session_t *sess, aim_module_t *mod, struct command_rx_struct *rx, aim_modsnac_t *snac, unsigned char *data, int datalen)
 {
 
-  faimdprintf(sess, 0, "%s: snachandler: got %x/%x\n", mod->name, snac->family, snac->subtype);
-
-  if (snac->family != mod->family)
-    return 0;
-
-  if (snac->subtype == 0x0001)
-    ;
-  else if ((snac->subtype == 0x0003) || (snac->subtype == 0x0005))
+  if ((snac->subtype == 0x0003) || (snac->subtype == 0x0005))
     return infochange(sess, mod, rx, snac, data, datalen);
   else if (snac->subtype == 0x0007)
     return accountconfirm(sess, mod, rx, snac, data, datalen);
This page took 0.032728 seconds and 4 git commands to generate.