From 035ee0bb10209ab0a9ce505df32549c79b7e1d64 Mon Sep 17 00:00:00 2001 From: Bleep Date: Mon, 10 Apr 2000 02:52:52 +0000 Subject: [PATCH] Author: Bleep Log message: Cleanup for IPcheck code fixes git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@143 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 7 ++++++- ircd/IPcheck.c | 2 +- ircd/s_user.c | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a07cf40..5dac41e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-04-09 Thomas Helvey + * include/IPcheck.h: fix prototype + * ircd/s_user.c: fix usage of IPcheck_remote_connect + * ircd/IPcheck.c: removed unused args + 2000-04-09 Thomas Helvey * include/IPcheck.h: add proto for IPcheck_expire @@ -339,7 +344,7 @@ # # ChangeLog for ircu2.10.11 # -# $Id: ChangeLog,v 1.66 2000-04-10 02:28:30 bleep Exp $ +# $Id: ChangeLog,v 1.67 2000-04-10 02:52:52 bleep Exp $ # # Insert new changes at beginning of the change list. # diff --git a/ircd/IPcheck.c b/ircd/IPcheck.c index 203b2b9..11f50eb 100644 --- a/ircd/IPcheck.c +++ b/ircd/IPcheck.c @@ -488,7 +488,7 @@ int IPcheck_local_connect(struct in_addr a, time_t* next_target_out) * Update the IPcheck registry. * Return 0 on failure, 1 on success. */ -int IPcheck_remote_connect(struct Client *cptr, const char *hostname, int is_burst) +int IPcheck_remote_connect(struct Client *cptr, int is_burst) { assert(0 != cptr); return ip_registry_check_remote(cptr, is_burst); diff --git a/ircd/s_user.c b/ircd/s_user.c index f4b5167..08c3bb1 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -617,7 +617,7 @@ int register_user(struct Client *cptr, struct Client *sptr, if (IsBurst(acptr) || Protocol(acptr) < 10) break; } - if (IPcheck_remote_connect(sptr, user->host, (acptr != &me)) == -1) + if (!IPcheck_remote_connect(sptr, (acptr != &me))) /* * We ran out of bits to count this */ -- 2.20.1