From 477bbce447356835e3b71cfd573fba11595b7926 Mon Sep 17 00:00:00 2001 From: jilles Date: Fri, 18 May 2007 12:51:22 -0700 Subject: [PATCH] [svn] m_webirc: call del_unknown_ip() otherwise the unknown will never be subtracted from the cgiirc ip --- ChangeLog | 11 +++++++++++ extensions/m_webirc.c | 4 +++- include/serno.h | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3746b17..50cf1fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +jilles 2007/05/18 19:14:18 UTC (20070518-3456) + Log: + Remove s_assert in del_unknown_ip() supposedly if the ip + cannot be found, it is not feasible to avoid that case + entirely with m_webirc.c. + + + Changes: Modified: + +1 -2 trunk/src/reject.c (File Modified) + + jilles 2007/05/14 22:21:16 UTC (20070514-3446) Log: Apply ratbox flood fix. diff --git a/extensions/m_webirc.c b/extensions/m_webirc.c index 9cbb40a..36a8389 100644 --- a/extensions/m_webirc.c +++ b/extensions/m_webirc.c @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: m_webirc.c 3426 2007-04-25 15:22:28Z jilles $ + * $Id: m_webirc.c 3458 2007-05-18 19:51:22Z jilles $ */ /* Usage: * auth { @@ -54,6 +54,7 @@ #include "s_serv.h" #include "hash.h" #include "s_conf.h" +#include "reject.h" static int mr_webirc(struct Client *, struct Client *, int, const char **); @@ -125,6 +126,7 @@ mr_webirc(struct Client *client_p, struct Client *source_p, int parc, const char else strlcpy(source_p->host, source_p->sockhost, sizeof(source_p->host)); + del_unknown_ip(source_p); inetpton_sock(parv[4], (struct sockaddr *)&source_p->localClient->ip); /* Check dlines now, k/glines will be checked on registration */ diff --git a/include/serno.h b/include/serno.h index 1c7810a..15f0cac 100644 --- a/include/serno.h +++ b/include/serno.h @@ -1 +1 @@ -#define SERNO "20070514-3446" +#define SERNO "20070518-3456"