summaryrefslogtreecommitdiff
path: root/src/sessions.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/sessions.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/sessions.c')
-rw-r--r--src/sessions.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/sessions.c b/src/sessions.c
index 3ea37d9ca..014b9da01 100644
--- a/src/sessions.c
+++ b/src/sessions.c
@@ -138,12 +138,7 @@ int add_session(const char *nick, const char *host, char *hostip)
if (session) {
exception = find_hostip_exception(host, hostip);
- if (checkDefCon(DEFCON_REDUCE_SESSION)) {
- sessionlimit =
- exception ? exception->limit : DefConSessionLimit;
- } else {
- sessionlimit = exception ? exception->limit : DefSessionLimit;
- }
+ sessionlimit = exception ? exception->limit : DefSessionLimit;
if (sessionlimit != 0 && session->count >= sessionlimit) {
if (SessionLimitExceeded)