summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/outbound.c2
-rw-r--r--src/common/servlist.c2
-rw-r--r--src/common/servlist.h3
3 files changed, 5 insertions, 2 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 9ec0d04d..d5dbdc49 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -273,7 +273,7 @@ cmd_addserver (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 		if (!network)
 		{
 			network = servlist_net_add (word[2], "", TRUE);
-			network->encoding = strdup ("IRC (Latin/Unicode Hybrid)");
+			network->encoding = strdup (IRC_DEFAULT_CHARSET);
 		}
 		/* if we had the network already, check if the given server already exists */
 		else if (servlist_server_find (network, word_eol[3], NULL))
diff --git a/src/common/servlist.c b/src/common/servlist.c
index 43d01858..4581343f 100644
--- a/src/common/servlist.c
+++ b/src/common/servlist.c
@@ -970,7 +970,7 @@ servlist_load_defaults (void)
 		if (def[i].network)
 		{
 			net = servlist_net_add (def[i].network, def[i].host, FALSE);
-			net->encoding = strdup ("IRC (Latin/Unicode Hybrid)");
+			net->encoding = strdup (IRC_DEFAULT_CHARSET);
 			if (def[i].channel)
 				net->autojoin = strdup (def[i].channel);
 			if (def[i].charset)
diff --git a/src/common/servlist.h b/src/common/servlist.h
index 9b7734f4..855c3b09 100644
--- a/src/common/servlist.h
+++ b/src/common/servlist.h
@@ -35,6 +35,9 @@ extern GSList *network_list;
 #define FLAG_FAVORITE			64
 #define FLAG_COUNT				7
 
+/* DEFAULT_CHARSET is already defined in wingdi.h */
+#define IRC_DEFAULT_CHARSET		"IRC (Latin/Unicode Hybrid)"
+
 void servlist_init (void);
 int servlist_save (void);
 int servlist_cycle (server *serv);