From 7a522d1c348ebab4a9fe5d90a91683ea10922973 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 1 Sep 2010 21:01:52 -0400 Subject: Only look up session exceptions if the user exceeds the session limit, really send akills for exceeding session limits, and fixed os akill del to really work --- include/extern.h | 2 +- include/services.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/extern.h b/include/extern.h index 9f2071a88..48336be5f 100644 --- a/include/extern.h +++ b/include/extern.h @@ -333,7 +333,7 @@ E std::vector exceptions; E void get_session_stats(long &count, long &mem); E void get_exception_stats(long &count, long &mem); -E int add_session(const Anope::string &nick, const Anope::string &host, const Anope::string &hostip); +E void add_session(const Anope::string &nick, const Anope::string &host, const Anope::string &hostip); E void del_session(const Anope::string &host); E void expire_exceptions(); diff --git a/include/services.h b/include/services.h index 4702dcff1..f44425656 100644 --- a/include/services.h +++ b/include/services.h @@ -865,8 +865,8 @@ extern CoreExport session_map SessionList; struct Session { Anope::string host; - int count; /* Number of clients with this host */ - int hits; /* Number of subsequent kills for a host */ + unsigned count; /* Number of clients with this host */ + unsigned hits; /* Number of subsequent kills for a host */ }; /*************************************************************************/ -- cgit