# HG changeset patch # User Luke Schierer # Date 1092701722 0 # Node ID ea1f457b7fef85f3bdba4073aae7a31d4578146a # Parent c31e64c2bd85ff9af2db3f15026e609f9c5e5fde [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 diff -r c31e64c2bd85 -r ea1f457b7fef src/protocols/yahoo/yahoo.c --- 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, diff -r c31e64c2bd85 -r ea1f457b7fef src/protocols/yahoo/yahoochat.c --- 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; diff -r c31e64c2bd85 -r ea1f457b7fef src/protocols/yahoo/yahoochat.h --- 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);