summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordrstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2007-08-31 20:40:36 +0000
committerdrstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2007-08-31 20:40:36 +0000
commit317b3e0c4efa277c29e77f8acd3e8b4b000bdc36 (patch)
tree8fb8df7ed5b7f5912ee2fbfc0e4956c5ed152a88 /include
parentd5a2079085b739a0eb31d1074822a2ecedc0e4fa (diff)
BUILD : 1.7.19 (1295) BUGS : N/A NOTES : We now have hostip in user_ struct so we can use it where needed. We wont do host_resolve() unless it is extremely necessary, coz we dont want to flood the nameserver.
git-svn-id: svn://svn.anope.org/anope/trunk@1295 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1013 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/extern.h3
-rw-r--r--include/services.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/include/extern.h b/include/extern.h
index df8b7f74a..eefe55d23 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -1053,7 +1053,7 @@ E void get_session_stats(long *nrec, long *memuse);
E void get_exception_stats(long *nrec, long *memuse);
E int do_session(User *u);
-E int add_session(char *nick, char *host);
+E int add_session(char *nick, char *host, char *hostip);
E void del_session(const char *host);
E void load_exceptions(void);
@@ -1065,6 +1065,7 @@ E void expire_exceptions(void);
E Session *findsession(const char *host);
E Exception *find_host_exception(const char *host);
+E Exception *find_hostip_exception(const char *host, const char *hostip);
E int exception_add(User * u, const char *mask, const int limit,
const char *reason, const char *who,
const time_t expires);
diff --git a/include/services.h b/include/services.h
index 17e2c26a7..a98e3c121 100644
--- a/include/services.h
+++ b/include/services.h
@@ -849,6 +849,7 @@ struct user_ {
char *username; /* ident */
char *host; /* User's real hostname */
+ char *hostip; /* User's IP number */
char *vhost; /* User's virtual hostname */
char *vident; /* User's virtual ident */
char *realname; /* Realname */