diff src/protocols/oscar/oscar.c @ 9754:4a8bf81b82ae

[gaim-migrate @ 10621] " This will default the room/server fields to the proper values when an add chat is requested from a conversation window. It wasn't quite as trivial as the reporter suggested..." --Nathan (noif) Fredrickson committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 15 Aug 2004 19:34:20 +0000
parents 60705fd4f411
children 4f2b50a06224
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Aug 15 17:05:51 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Aug 15 19:34:20 2004 +0000
@@ -6224,6 +6224,18 @@
 	return m;
 }
 
+GHashTable *oscar_chat_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;
+}
+
 static void oscar_join_chat(GaimConnection *gc, GHashTable *data) {
 	OscarData *od = (OscarData *)gc->proto_data;
 	aim_conn_t *cur;
@@ -7196,6 +7208,7 @@
 	oscar_away_states,		/* away_states */
 	oscar_blist_node_menu,	/* blist_node_menu */
 	oscar_chat_info,		/* chat_info */
+	oscar_chat_info_defaults, /* chat_info_defaults */
 	oscar_login,			/* login */
 	oscar_close,			/* close */
 	oscar_send_im,			/* send_im */