diff options
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-commands.c | 4 | ||||
-rw-r--r-- | src/irc/core/netsplit.c | 4 | ||||
-rw-r--r-- | src/irc/core/server-reconnect.c | 1 | ||||
-rw-r--r-- | src/irc/core/server-reconnect.h | 4 | ||||
-rw-r--r-- | src/irc/core/server-setup.c | 2 | ||||
-rw-r--r-- | src/irc/flood/autoignore.c | 4 |
6 files changed, 14 insertions, 5 deletions
diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index 59d85da3..ea720edb 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -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; diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c index 34c478cf..5d7d3bf3 100644 --- a/src/irc/core/netsplit.c +++ b/src/irc/core/netsplit.c @@ -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) diff --git a/src/irc/core/server-reconnect.c b/src/irc/core/server-reconnect.c index a89fc59f..c4821364 100644 --- a/src/irc/core/server-reconnect.c +++ b/src/irc/core/server-reconnect.c @@ -31,7 +31,6 @@ #include "server-reconnect.h" #include "settings.h" -#include "common-setup.h" GSList *reconnects; static int last_reconnect_tag; diff --git a/src/irc/core/server-reconnect.h b/src/irc/core/server-reconnect.h index 6f4b5336..9df7f2cc 100644 --- a/src/irc/core/server-reconnect.h +++ b/src/irc/core/server-reconnect.h @@ -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; diff --git a/src/irc/core/server-setup.c b/src/irc/core/server-setup.c index 324a4575..c7c39236 100644 --- a/src/irc/core/server-setup.c +++ b/src/irc/core/server-setup.c @@ -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 */ diff --git a/src/irc/flood/autoignore.c b/src/irc/flood/autoignore.c index da384dd9..1b3f757f 100644 --- a/src/irc/flood/autoignore.c +++ b/src/irc/flood/autoignore.c @@ -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) |