diff options
author | Adam <Adam@anope.org> | 2011-02-25 21:25:47 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-02-25 21:55:23 -0500 |
commit | b9fb2f8e638a95398330c9dfe56102a858f4a2da (patch) | |
tree | f1d6961396893277b6911509c77a205239659bab | |
parent | 1a1665ba562820994781702381d5e536bd6c75a5 (diff) |
Fixed session exception limit of 0 to mean unlimited
(cherry picked from commit 28d17a40cef64783addf177fa30fb267db2cbde7)
-rw-r--r-- | src/sessions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sessions.cpp b/src/sessions.cpp index c125a4cb0..cd02c2792 100644 --- a/src/sessions.cpp +++ b/src/sessions.cpp @@ -114,7 +114,7 @@ void add_session(const Anope::string &nick, const Anope::string &host, const Ano if (exception) { kill = false; - if (session->count >= exception->limit) + if (exception->limit && session->count >= exception->limit) kill = true; } } |