summary refs log tree commit diff stats
path: root/src/fe-gtk/servlistgui.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-05-13 13:22:25 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-05-13 13:22:25 +0200
commit83107ee222a9b660bb73595dd321ffd724864876 (patch)
tree98cfff194796f1f3e81f106f216391a7755a9359 /src/fe-gtk/servlistgui.c
parent2c15270be1cdb3c5034373a4d47eae3b11e19688 (diff)
Use macros instead of raw numbers for login type
Diffstat (limited to 'src/fe-gtk/servlistgui.c')
-rw-r--r--src/fe-gtk/servlistgui.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fe-gtk/servlistgui.c b/src/fe-gtk/servlistgui.c
index 2e799f8b..53aba691 100644
--- a/src/fe-gtk/servlistgui.c
+++ b/src/fe-gtk/servlistgui.c
@@ -116,16 +116,16 @@ static const char *pages[]=
  */
 static int login_types_conf[] =
 {
-	0,	/* default - we don't use this but it makes indexing consistent with login_types[] so it's nice */
-	6,	/* SASL */
-	7,	/* /pass */
-	1,	/* /msg NickServ */
-	2,	/* /NickServ */
+	LOGIN_DEFAULT,			/* default entry - we don't use this but it makes indexing consistent with login_types[] so it's nice */
+	LOGIN_SASL,
+	LOGIN_PASS,
+	LOGIN_MSG_NICKSERV,
+	LOGIN_NICKSERV,
 #if 0
-	3,	/* /NS */
+	LOGIN_NS,
 #endif
-	4,	/* /msg NS */
-	5,	/* /auth */
+	LOGIN_MSG_NS,
+	LOGIN_AUTH,
 };
 
 static const char *login_types[]=