summary refs log tree commit diff stats
path: root/src/fe-gtk/joind.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-07-27 00:22:57 -0400
committerTingPing <tngpng@gmail.com>2013-07-27 00:22:57 -0400
commit3bd2143d9a082a8aea531a2ddd171d16b4669e1c (patch)
treecaeb7d4448acbdbbbbff03ad916daa6f56691613 /src/fe-gtk/joind.c
parent93cfa353e79ec327d200ad6e98bee229f335dde8 (diff)
Have join dialog suggest #hexchat for freenode users
Diffstat (limited to 'src/fe-gtk/joind.c')
-rw-r--r--src/fe-gtk/joind.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fe-gtk/joind.c b/src/fe-gtk/joind.c
index b58d662a..55d62e3b 100644
--- a/src/fe-gtk/joind.c
+++ b/src/fe-gtk/joind.c
@@ -34,6 +34,7 @@
 #include "../common/hexchat.h"
 #include "../common/hexchatc.h"
 #include "../common/server.h"
+#include "../common/servlist.h"
 #include "../common/fe.h"
 #include "fe-gtk.h"
 #include "chanlist.h"
@@ -241,6 +242,13 @@ joind_show_dialog (server *serv)
 							G_CALLBACK (joind_radio2_cb), serv);
 	g_signal_connect (G_OBJECT (okbutton1), "clicked",
 							G_CALLBACK (joind_ok_cb), serv);
+							
+	if (serv->network)
+		if (g_ascii_strcasecmp(((ircnet*)serv->network)->name, "freenode") == 0)
+		{
+			gtk_entry_set_text (GTK_ENTRY (entry1), "#hexchat");
+			gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(radiobutton2), TRUE);
+		}
 
 	gtk_widget_grab_focus (okbutton1);
 	gtk_widget_show_all (dialog1);