diff src/protocols/oscar/ssi.c @ 4642:c0abcd675ca6

[gaim-migrate @ 4952] Gonna dress you up in mylar All over, your body Gonna dress you up in mylar I tried to add a warning for when your buddy list is temporarily unavailbabable, but I don't really have a way to test it. SO, if you get a cool little dialog that says "You're buddy list is unavailble," let me know, so I can get some football players to dump gatorade on my head. I want to make gaim fallback to old-school buddy lists, but they're not working so well right now, for some reason. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 03 Mar 2003 08:31:55 +0000
parents 4bb433a7331c
children f1fde07ed951
line wrap: on
line diff
--- a/src/protocols/oscar/ssi.c	Mon Mar 03 07:43:55 2003 +0000
+++ b/src/protocols/oscar/ssi.c	Mon Mar 03 08:31:55 2003 +0000
@@ -1196,8 +1196,13 @@
  * settings into effect.
  * 
  */
-faim_export int aim_ssi_enable(aim_session_t *sess, aim_conn_t *conn)
+faim_export int aim_ssi_enable(aim_session_t *sess)
 {
+	aim_conn_t *conn;
+
+	if (!sess || !(conn = aim_conn_findbygroup(sess, AIM_CB_FAM_SSI)))
+		return -EINVAL;
+
 	return aim_genericreq_n(sess, conn, AIM_CB_FAM_SSI, 0x0007);
 }