static int snachandler(OscarData *od, FlapConnection *conn, aim_module_t *mod, FlapFrame *frame, aim_modsnac_t *snac, ByteStream *bs) { if (snac->subtype == SNAC_SUBTYPE_BUDDY_RIGHTSINFO) return rights(od, conn, mod, frame, snac, bs); else if ((snac->subtype == SNAC_SUBTYPE_BUDDY_ONCOMING) || (snac->subtype == SNAC_SUBTYPE_BUDDY_OFFGOING)) return buddychange(od, conn, mod, frame, snac, bs); return 0; }
static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) { if (snac->subtype == 0x0003) return rights(sess, mod, rx, snac, bs); else if ((snac->subtype == 0x000b) || (snac->subtype == 0x000c)) return buddychange(sess, mod, rx, snac, bs); return 0; }