summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-30 01:04:13 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-30 01:04:13 +0000
commit6a9fa9f4d2ead592eb51a014491ce3aaee2029e8 (patch)
tree454479f2c8ef69a52e461416be42fd94d8b15955 /src/main.c
parent5fc268b7509f20cbf1243b99f2669033b93db00e (diff)
Rewrote all of the defcon code, and moved most of it to os_defcon. This fixes defcon to have the ability to use modes introduced to Anope at a later time than on startup (eg, from the IRCd), amongst other things
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2597 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 4d9bfb1c1..1d2d05f1a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -366,7 +366,6 @@ int main(int ac, char **av, char **envp)
time_t last_update; /* When did we last update the databases? */
time_t last_expire; /* When did we last expire nicks/channels? */
time_t last_check; /* When did we last check timeouts? */
- time_t last_DefCon; /* When was DefCon last checked? */
int i;
char *progname;
@@ -429,7 +428,6 @@ int main(int ac, char **av, char **envp)
last_update = time(NULL);
last_expire = time(NULL);
last_check = time(NULL);
- last_DefCon = time(NULL);
started = 1;
@@ -481,11 +479,6 @@ int main(int ac, char **av, char **envp)
last_update = t;
}
- if ((DefConTimeOut) && (t - last_DefCon >= DefConTimeOut)) {
- resetDefCon(5);
- last_DefCon = t;
- }
-
if (delayed_quit)
break;