diff src/protocols/oscar/ssi.c @ 7313:be7c1468c6a7

[gaim-migrate @ 7897] I thought I commited some of this a while ago... oh well. None of it is really important at all. I uncommented the available message stuff, it might work for some people (Sam), but doesn't work for me. I don't want to have to comment this out again before 0.72... so someone get this working (Sam). committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 22 Oct 2003 03:32:21 +0000
parents ad243bc63184
children c5e3797e7dbb
line wrap: on
line diff
--- a/src/protocols/oscar/ssi.c	Wed Oct 22 02:01:30 2003 +0000
+++ b/src/protocols/oscar/ssi.c	Wed Oct 22 03:32:21 2003 +0000
@@ -1068,6 +1068,29 @@
 }
 
 /**
+ * Remove a reference to a server stored buddy icon.  This will make your 
+ * icon stop showing up to other people.
+ *
+ * @param sess The oscar session.
+ * @return Return 0 if no errors, otherwise return the error number.
+ */
+faim_export int aim_ssi_delicon(aim_session_t *sess)
+{
+	struct aim_ssi_item *tmp;
+
+	if (!sess)
+		return -EINVAL;
+
+	/* Find the ICONINFO item and delete it if it exists*/
+	if ((tmp = aim_ssi_itemlist_finditem(sess->ssi.local, NULL, "1", AIM_SSI_TYPE_ICONINFO)))
+		aim_ssi_itemlist_del(&sess->ssi.local, tmp);
+
+	/* Sync our local list with the server list */
+	aim_ssi_sync(sess);
+	return 0;
+}
+
+/**
  * Stores your setting for whether you should show up as idle or not.
  *
  * @param sess The oscar session.