summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2007-08-31 18:59:12 +0000
committerdrstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2007-08-31 18:59:12 +0000
commitd5a2079085b739a0eb31d1074822a2ecedc0e4fa (patch)
treeda15e582f3abae746470e4567eb88de3e9675835 /src
parentcde740c02fca2f280277fd997b43857c5ddb9394 (diff)
BUILD : 1.7.19 (1294) BUGS : N/A NOTES : in is_excepted() if we found the exception, break(). There is no point on continue exploring the array. Also, I forgot to free hostip in my previous commit.
git-svn-id: svn://svn.anope.org/anope/trunk@1294 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1012 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/users.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/users.c b/src/users.c
index f5c0c4160..e46c07d5a 100644
--- a/src/users.c
+++ b/src/users.c
@@ -934,8 +934,10 @@ int is_excepted(ChannelInfo * ci, User * user)
if (match_usermask(excepts[i], user)
|| (hostip && match_userip(excepts[i], user, hostip))) {
isexcepted = 1;
+ break;
}
}
+ Anope_Free(hostip);
free(excepts);
return isexcepted;
}