changeset 8197:7c45eb829340

[gaim-migrate @ 8919] another one of those horrible hacks that I plan to remove in 6 months or so committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 01 Feb 2004 04:09:34 +0000
parents ad449554f1ab
children 9f174d0222bd
files src/gtkblist.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkblist.c	Sun Feb 01 03:21:10 2004 +0000
+++ b/src/gtkblist.c	Sun Feb 01 04:09:34 2004 +0000
@@ -894,8 +894,9 @@
 create_chat_menu (GaimBlistNode *node)
 {
 	GtkWidget *menu;
-	gboolean autojoin = gaim_blist_node_get_bool(node,
-						     "gtk-autojoin");
+	gboolean autojoin = (gaim_blist_node_get_bool(node,
+						     "gtk-autojoin") || (gaim_blist_get_string(node,
+									 "gtk-autojoin") != NULL))
 
 	menu = gtk_menu_new();
 	gaim_new_item_from_stock(menu, _("_Join"), GAIM_STOCK_CHAT,
@@ -4075,7 +4076,9 @@
 			if(chat->account != account)
 				continue;
 
-			if(gaim_blist_node_get_bool((GaimBlistNode*)chat, "gtk-autojoin"))
+			if(gaim_blist_node_get_bool((GaimBlistNode*)chat, "gtk-autojoin") ||
+					(gaim_blist_node_get_string(GaimBlistNode*)chat,
+					 "gtk-autojoin" != NULL))
 				serv_join_chat(gc, chat->components);
 		}
 	}