summary refs log tree commit diff stats
path: root/src/common/hexchat.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-06-04 06:07:51 -0300
committerTingPing <tngpng@gmail.com>2013-06-04 06:07:51 -0300
commitdf0e97550b2a8219815a9f10e3cda8d38a754f7f (patch)
tree69ef83d6b8b5ba10dd9e2af46af4ef19e2430ea3 /src/common/hexchat.c
parent983b4ace896704726d7be9d781068f81cf410b7b (diff)
fix loading startup.txt automatically
Diffstat (limited to 'src/common/hexchat.c')
-rw-r--r--src/common/hexchat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/hexchat.c b/src/common/hexchat.c
index aa37b850..65999794 100644
--- a/src/common/hexchat.c
+++ b/src/common/hexchat.c
@@ -438,9 +438,7 @@ irc_init (session *sess)
 	}
 
 	/* load -e <xdir>/startup.txt */
-	buf = g_build_filename (get_xdir (), "startup.txt", NULL);
-	load_perform_file (sess, buf);
-	g_free (buf);
+	load_perform_file (sess, "startup.txt");
 }
 
 static session *