diff libpurple/protocols/oscar/util.c @ 27429:74e487f82f39

Oh, we don't need a special ui_info field for the AIM clientstring because we can just concat the name and version. And set the distids for libpurple, Pidgin and Finch AOL would like Adium to use 1551 (0x060f)
author Mark Doliner <mark@kingant.net>
date Wed, 08 Jul 2009 20:44:16 +0000
parents 5048054d319a
children f18b6eb0ed02
line wrap: on
line diff
--- a/libpurple/protocols/oscar/util.c	Wed Jul 08 20:11:07 2009 +0000
+++ b/libpurple/protocols/oscar/util.c	Wed Jul 08 20:44:16 2009 +0000
@@ -42,7 +42,7 @@
 	ui_info = purple_core_get_ui_info();
 	if (ui_info != NULL) {
 		gpointer value;
-		if (g_hash_table_lookup_extended(ui_info, str, NULL, value))
+		if (g_hash_table_lookup_extended(ui_info, str, NULL, &value))
 			return GPOINTER_TO_INT(value);
 	}
 
@@ -63,6 +63,16 @@
 	return value;
 }
 
+gchar *oscar_get_clientstring(void)
+{
+	const char *name, *version;
+
+	name = oscar_get_ui_info_string("name", "Purple");
+	version = oscar_get_ui_info_string("version", VERSION);
+
+	return g_strdup_printf("%s/%s", name, version);;
+}
+
 /*
  * Tokenizing functions.  Used to portably replace strtok/sep.
  *   -- DMP.