mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 09:40:20 +00:00
Use macros instead of raw numbers for login type
This commit is contained in:
@@ -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)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user