From 07eb941a58e82a2fc3fc5ab98dcaddcb49f315c4 Mon Sep 17 00:00:00 2001 From: stskeeps Date: Sat, 10 Aug 2002 16:51:44 +0000 Subject: [PATCH] arg --- Changes | 1 + src/hash.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/Changes b/Changes index 2a95c8bff..a9ff60c28 100644 --- a/Changes +++ b/Changes @@ -1459,3 +1459,4 @@ seen. gmtime warning still there - Modulized /vhost, /cycle, /svsjoin, /svspart - Fixed a autoconf problem where FD_SETSIZE was NOT replaced when it wasn't big enough (abort() problem on some installs.) +- Readded find_match_server which got removed, m_rping uses it. Now in hash.c diff --git a/src/hash.c b/src/hash.c index 36fdf3a27..08cdeaff4 100644 --- a/src/hash.c +++ b/src/hash.c @@ -728,3 +728,23 @@ int hash_del_watch_list(aClient *cptr) return 0; } + +aClient *find_match_server(char *mask) +{ + aClient *acptr; + + if (BadPtr(mask)) + return NULL; + for (acptr = client, collapse(mask); acptr; acptr = acptr->next) + { + if (!IsServer(acptr) && !IsMe(acptr)) + continue; + if (!match(mask, acptr->name)) + break; + continue; + } + return acptr; +} + + +