diff src/server.c @ 5842:dbed8c87f750

[gaim-migrate @ 6273] Another reason not to use CVS. This saves your buddy icons to the OSCAR servers (I hope). It's not fully tested and it may screw things up, but I wanted to get it in CVS so other people can try to break this, and KingAnt can review my work (that libfaim wizard that he is.) Don't use CVS. I'd like to thank Christian Hammond, for his work on the account and prpl APIs that made it so easy to add the hook into buddy icon changing. I'd like to thank Mark Doliner for laying most of the groundwork and for his kind words of encouragement. I'd like to thank myself for making the buddy icon selector real sexy-like. I'd like to thank the Lord almighty for giving me the strength to do this. I promised myself I wouldn't cry. I never imagined I'd be committing this. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 12 Jun 2003 22:19:07 +0000
parents 995e63fb1a5a
children 059d95c67cda
line wrap: on
line diff
--- a/src/server.c	Thu Jun 12 18:17:31 2003 +0000
+++ b/src/server.c	Thu Jun 12 22:19:07 2003 +0000
@@ -691,6 +691,18 @@
 	return val;
 }
 
+void serv_set_buddyicon(GaimConnection *gc, const char *filename)
+{
+	GaimPluginProtocolInfo *prpl_info = NULL;
+	
+	if (gc->prpl != NULL)
+		prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
+
+	if (prpl_info && prpl_info->set_buddy_icon)
+		prpl_info->set_buddy_icon(gc, filename);
+	
+}	
+
 int find_queue_row_by_name(char *name)
 {
 	gchar *temp;
@@ -1484,3 +1496,4 @@
 
 	gtk_imhtml_append_text(GTK_IMHTML(text), msg, -1, GTK_IMHTML_NO_NEWLINE);
 }
+