mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
removed common-setup.h, put all settings in it to files where they belong to.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@272 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
397def0d3c
commit
3e4f947934
@ -12,7 +12,6 @@ endif
|
||||
|
||||
noinst_HEADERS = \
|
||||
nls.h \
|
||||
common.h \
|
||||
common-setup.h
|
||||
common.h
|
||||
|
||||
SUBDIRS = lib-popt lib-config core irc fe-common $(PERLDIR) $(TEXTUI) $(BOTUI)
|
||||
|
@ -1,22 +0,0 @@
|
||||
#ifndef __COMMON_SETUP_H
|
||||
#define __COMMON_SETUP_H
|
||||
|
||||
#define LOG_FILE_CREATE_MODE 0644
|
||||
|
||||
/* wait for half an hour before trying to reconnect to host where last
|
||||
connection failed */
|
||||
#define FAILED_RECONNECT_WAIT (60*30)
|
||||
|
||||
/* How often to check if there's anyone to be unignored in autoignore list */
|
||||
#define AUTOIGNORE_TIMECHECK 10000
|
||||
|
||||
/* How often to check if there's anyone to be unbanned in knockout list */
|
||||
#define KNOCKOUT_TIMECHECK 10000
|
||||
|
||||
/* How often to check for gone status of nick */
|
||||
#define MAX_GONE_REFRESH_TIME 300
|
||||
|
||||
/* How long to keep netsplits in memory (seconds) */
|
||||
#define NETSPLIT_MAX_REMEMBER (60*30)
|
||||
|
||||
#endif
|
@ -24,7 +24,6 @@
|
||||
#include "misc.h"
|
||||
#include "special-vars.h"
|
||||
#include "settings.h"
|
||||
#include "common-setup.h"
|
||||
|
||||
#include "bans.h"
|
||||
#include "channels.h"
|
||||
@ -34,6 +33,9 @@
|
||||
#include "server-redirect.h"
|
||||
#include "server-setup.h"
|
||||
|
||||
/* How often to check if there's anyone to be unbanned in knockout list */
|
||||
#define KNOCKOUT_TIMECHECK 10000
|
||||
|
||||
typedef struct {
|
||||
CHANNEL_REC *channel;
|
||||
char *ban;
|
||||
|
@ -22,11 +22,13 @@
|
||||
#include "signals.h"
|
||||
#include "commands.h"
|
||||
#include "misc.h"
|
||||
#include "common-setup.h"
|
||||
|
||||
#include "irc-server.h"
|
||||
#include "netsplit.h"
|
||||
|
||||
/* How long to keep netsplits in memory (seconds) */
|
||||
#define NETSPLIT_MAX_REMEMBER (60*30)
|
||||
|
||||
static int split_tag;
|
||||
|
||||
static NETSPLIT_SERVER_REC *netsplit_server_find(IRC_SERVER_REC *server, const char *servername, const char *destserver)
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "server-reconnect.h"
|
||||
|
||||
#include "settings.h"
|
||||
#include "common-setup.h"
|
||||
|
||||
GSList *reconnects;
|
||||
static int last_reconnect_tag;
|
||||
|
@ -1,6 +1,10 @@
|
||||
#ifndef __SERVER_RECONNECT_H
|
||||
#define __SERVER_RECONNECT_H
|
||||
|
||||
/* wait for half an hour before trying to reconnect to host where last
|
||||
connection failed */
|
||||
#define FAILED_RECONNECT_WAIT (60*30)
|
||||
|
||||
typedef struct {
|
||||
int tag;
|
||||
time_t next_connect;
|
||||
|
@ -23,10 +23,10 @@
|
||||
#include "network.h"
|
||||
#include "lib-config/iconfig.h"
|
||||
#include "settings.h"
|
||||
#include "common-setup.h"
|
||||
|
||||
#include "irc-server.h"
|
||||
#include "server-setup.h"
|
||||
#include "server-reconnect.h"
|
||||
#include "ircnet-setup.h"
|
||||
|
||||
GSList *setupservers; /* list of irc servers */
|
||||
|
@ -25,13 +25,15 @@
|
||||
#include "levels.h"
|
||||
#include "misc.h"
|
||||
#include "settings.h"
|
||||
#include "common-setup.h"
|
||||
|
||||
#include "irc-server.h"
|
||||
#include "ignore.h"
|
||||
|
||||
#include "autoignore.h"
|
||||
|
||||
/* How often to check if there's anyone to be unignored in autoignore list */
|
||||
#define AUTOIGNORE_TIMECHECK 10000
|
||||
|
||||
static int ignore_tag;
|
||||
|
||||
GSList *server_autoignores(IRC_SERVER_REC *server)
|
||||
|
Loading…
x
Reference in New Issue
Block a user