summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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 */