From 1f13d094d7326b589c3be69c878c7c1650be1312 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 4 Jul 2013 21:29:43 +0000 Subject: - find_accept(): solved XXX git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2364 82007160-df01-0410-b94d-b575c5fd34c7 --- src/client.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/client.c b/src/client.c index 2fc453d..25ee4c8 100644 --- a/src/client.c +++ b/src/client.c @@ -1107,11 +1107,10 @@ del_accept(struct split_nuh_item *accept_p, struct Client *client_p) struct split_nuh_item * find_accept(const char *nick, const char *user, - const char *host, struct Client *client_p, int do_match) + const char *host, struct Client *client_p, + int (*cmpfunc)(const char *, const char *)) { dlink_node *ptr = NULL; - /* XXX We wouldn't need that if match() would return 0 on match */ - int (*cmpfunc)(const char *, const char *) = do_match ? match : irccmp; DLINK_FOREACH(ptr, client_p->localClient->acceptlist.head) { @@ -1140,7 +1139,7 @@ accept_message(struct Client *source, dlink_node *ptr = NULL; if (source == target || find_accept(source->name, source->username, - source->host, target, 1)) + source->host, target, match)) return 1; if (HasUMode(target, UMODE_SOFTCALLERID)) -- cgit