diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-07-04 21:29:43 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-07-04 21:29:43 +0000 |
commit | 1f13d094d7326b589c3be69c878c7c1650be1312 (patch) | |
tree | bf73772ced9605edeaf0b8f668f03313a65194b0 /src | |
parent | 268c8181dbcc476053f6db6033d9943da336569f (diff) |
- 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
Diffstat (limited to 'src')
-rw-r--r-- | src/client.c | 7 |
1 files changed, 3 insertions, 4 deletions
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)) |