Mercurial > pidgin
diff src/protocols/oscar/email.c @ 7282:ad243bc63184
[gaim-migrate @ 7861]
Mostly this is my usual blah clean-up/changes.
I started merging that icq sms patch, but I'm not comfortable
with much of it...
I also made AIM have 6 login steps instead of 2. The first
few go pretty quickly though. I'll probably work on this
more later, but I'm going to sleep now.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 16 Oct 2003 06:12:43 +0000 |
parents | 6d3d8f11e765 |
children | ceda503e55a6 |
line wrap: on
line diff
--- a/src/protocols/oscar/email.c Thu Oct 16 04:35:41 2003 +0000 +++ b/src/protocols/oscar/email.c Thu Oct 16 06:12:43 2003 +0000 @@ -18,12 +18,13 @@ * @param conn The email connection for this session. * @return Return 0 if no errors, otherwise return the error number. */ -faim_export int aim_email_sendcookies(aim_session_t *sess, aim_conn_t *conn) +faim_export int aim_email_sendcookies(aim_session_t *sess) { + aim_conn_t *conn; aim_frame_t *fr; aim_snacid_t snacid; - if (!sess || !conn) + if (!sess || !(conn = aim_conn_findbygroup(sess, AIM_CB_FAM_EML))) return -EINVAL; if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+2+16+16))) @@ -140,12 +141,13 @@ * @param conn The email connection for this session. * @return Return 0 if no errors, otherwise return the error number. */ -faim_export int aim_email_activate(aim_session_t *sess, aim_conn_t *conn) +faim_export int aim_email_activate(aim_session_t *sess) { + aim_conn_t *conn; aim_frame_t *fr; aim_snacid_t snacid; - if (!sess || !conn) + if (!sess || !(conn = aim_conn_findbygroup(sess, AIM_CB_FAM_EML))) return -EINVAL; if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10+1+16)))