diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-10-20 00:38:33 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-10-20 00:38:33 +0100 |
commit | 6042a54e827b36770e8989d9a8ba49a66ec6f846 (patch) | |
tree | 80fb3767c863d88f03d20f310762706664a3ef19 /protocols/oscar/search.c | |
parent | 386042c08547bbe7f0b62ad97cdd8488cc13e97e (diff) |
Massive cleanup in OSCAR.
Diffstat (limited to 'protocols/oscar/search.c')
-rw-r--r-- | protocols/oscar/search.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/protocols/oscar/search.c b/protocols/oscar/search.c index 3570e4df..4e0d3858 100644 --- a/protocols/oscar/search.c +++ b/protocols/oscar/search.c @@ -8,27 +8,6 @@ #include <aim.h> -int aim_usersearch_address(aim_session_t *sess, aim_conn_t *conn, const char *address) -{ - aim_frame_t *fr; - aim_snacid_t snacid; - - if (!sess || !conn || !address) - return -EINVAL; - - if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+strlen(address)))) - return -ENOMEM; - - snacid = aim_cachesnac(sess, 0x000a, 0x0002, 0x0000, g_strdup(address), strlen(address)+1); - aim_putsnac(&fr->data, 0x000a, 0x0002, 0x0000, snacid); - - aimbs_putraw(&fr->data, (guint8 *)address, strlen(address)); - - aim_tx_enqueue(sess, fr); - - return 0; -} - /* XXX can this be integrated with the rest of the error handling? */ static int error(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) { |