diff options
Diffstat (limited to 'account.h')
| -rw-r--r-- | account.h | 19 | 
1 files changed, 16 insertions, 3 deletions
| @@ -34,7 +34,9 @@ typedef struct account  	char *server;  	int auto_connect; +	int auto_reconnect_delay;  	int reconnect; +	int flags;  	set_t *set;  	GHashTable *nicks; @@ -51,9 +53,20 @@ void account_on( irc_t *irc, account_t *a );  void account_off( irc_t *irc, account_t *a );  char *set_eval_account( set_t *set, char *value ); +char *set_eval_account_reconnect_delay( set_t *set, char *value ); +int account_reconnect_delay( account_t *a ); -#define ACC_SET_NOSAVE		1 -#define ACC_SET_OFFLINE_ONLY	2 -#define ACC_SET_ONLINE_ONLY	4 +typedef enum +{ +	ACC_SET_NOSAVE = 0x01,          /* Don't save this setting (i.e. stored elsewhere). */ +	ACC_SET_OFFLINE_ONLY = 0x02,    /* Allow changes only if the acct is offline. */ +	ACC_SET_ONLINE_ONLY = 0x04,     /* Allow changes only if the acct is online. */ +} account_set_flag_t; + +typedef enum +{ +	ACC_FLAG_AWAY_MESSAGE = 0x01,   /* Supports away messages instead of just states. */ +	ACC_FLAG_STATUS_MESSAGE = 0x02, /* Supports status messages (without being away). */ +} account_flag_t;  #endif | 
