diff options
| author | Adam <Adam@anope.org> | 2010-09-01 21:01:52 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-09-01 21:01:52 -0400 |
| commit | 7a522d1c348ebab4a9fe5d90a91683ea10922973 (patch) | |
| tree | e9b7e5c2e0f0c534022135d40968b8a69c83d9aa /include | |
| parent | f2769273652f61f1d620c98a94b9c95983ed5647 (diff) | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/extern.h | 2 | ||||
| -rw-r--r-- | include/services.h | 4 |
2 files changed, 3 insertions, 3 deletions
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<Exception *> 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 */ }; /*************************************************************************/ |
