changeset 9768:ea1f457b7fef

[gaim-migrate @ 10636] (20:06:38) noif: LSchiere: here's a small addition to my chat-info-deafults patch you applied yesterday... as marv pointed out, I forgot yahoo committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 17 Aug 2004 00:15:22 +0000
parents c31e64c2bd85
children 6be50545eed7
files src/protocols/yahoo/yahoo.c src/protocols/yahoo/yahoochat.c src/protocols/yahoo/yahoochat.h
diffstat 3 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Mon Aug 16 21:52:52 2004 +0000
+++ b/src/protocols/yahoo/yahoo.c	Tue Aug 17 00:15:22 2004 +0000
@@ -3272,7 +3272,7 @@
 	yahoo_away_states,
 	yahoo_blist_node_menu,
 	yahoo_c_info,
-	NULL,
+	yahoo_c_info_defaults,
 	yahoo_login,
 	yahoo_close,
 	yahoo_send_im,
--- a/src/protocols/yahoo/yahoochat.c	Mon Aug 16 21:52:52 2004 +0000
+++ b/src/protocols/yahoo/yahoochat.c	Tue Aug 17 00:15:22 2004 +0000
@@ -1005,6 +1005,18 @@
 	return m;
 }
 
+GHashTable *yahoo_c_info_defaults(GaimConnection *gc, const char *chat_name)
+{
+	GHashTable *defaults;
+
+	defaults = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, g_free);
+
+	if (chat_name != NULL)
+		g_hash_table_insert(defaults, "room", g_strdup(chat_name));
+
+	return defaults;
+}
+
 void yahoo_c_join(GaimConnection *gc, GHashTable *data)
 {
 	struct yahoo_data *yd;
--- a/src/protocols/yahoo/yahoochat.h	Mon Aug 16 21:52:52 2004 +0000
+++ b/src/protocols/yahoo/yahoochat.h	Tue Aug 17 00:15:22 2004 +0000
@@ -44,6 +44,7 @@
 void yahoo_c_leave(GaimConnection *gc, int id);
 int yahoo_c_send(GaimConnection *gc, int id, const char *what);
 GList *yahoo_c_info(GaimConnection *gc);
+GHashTable *yahoo_c_info_defaults(GaimConnection *gc, const char *chat_name);
 void yahoo_c_join(GaimConnection *gc, GHashTable *data);
 void yahoo_c_invite(GaimConnection *gc, int id, const char *msg, const char *name);