From 83107ee222a9b660bb73595dd321ffd724864876 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Mon, 13 May 2013 13:22:25 +0200 Subject: Use macros instead of raw numbers for login type --- src/fe-gtk/servlistgui.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/fe-gtk/servlistgui.c') 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[]= -- cgit 1.4.1