summary refs log tree commit diff stats
path: root/src/common/servlist.h
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/common/servlist.h
parent2c15270be1cdb3c5034373a4d47eae3b11e19688 (diff)
Use macros instead of raw numbers for login type
Diffstat (limited to 'src/common/servlist.h')
-rw-r--r--src/common/servlist.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/common/servlist.h b/src/common/servlist.h
index 350a1558..8558154b 100644
--- a/src/common/servlist.h
+++ b/src/common/servlist.h
@@ -58,13 +58,24 @@ extern GSList *network_list;
 
 #define FLAG_CYCLE				1
 #define FLAG_USE_GLOBAL			2
-#define FLAG_USE_SSL				4
+#define FLAG_USE_SSL			4
 #define FLAG_AUTO_CONNECT		8
 #define FLAG_USE_PROXY			16
 #define FLAG_ALLOW_INVALID		32
 #define FLAG_FAVORITE			64
 #define FLAG_COUNT				7
 
+/* Login methods. Use server password by default - if we had a NickServ password, it'd be set to 2 already by servlist_load() */
+#define LOGIN_DEFAULT_REAL		LOGIN_PASS		/* this is to set the default login method for unknown servers */
+#define LOGIN_DEFAULT			0				/* this is for the login type dropdown, doesn't serve any other purpose */
+#define LOGIN_MSG_NICKSERV		1
+#define LOGIN_NICKSERV			2
+#define LOGIN_NS				3
+#define LOGIN_MSG_NS			4
+#define LOGIN_AUTH				5
+#define LOGIN_SASL				6
+#define LOGIN_PASS				7
+
 /* DEFAULT_CHARSET is already defined in wingdi.h */
 #define IRC_DEFAULT_CHARSET		"UTF-8 (Unicode)"