diff options
author | drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-08-31 21:19:50 +0000 |
---|---|---|
committer | drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-08-31 21:19:50 +0000 |
commit | 5088cdcf99af8b7427aaed5c62bc208607be4f13 (patch) | |
tree | b778a83fdd8f6a4ff8d177a3693c7865c5d671c9 | |
parent | 57776f87e6c18ca42249823c0e8ad9c60db657c1 (diff) |
BUILD : 1.7.19 (1297) BUGS : N/A NOTES : In the last commit, I forgot to store the just resolved IP in common_unban() so we wont need to resolve the host again.
git-svn-id: svn://svn.anope.org/anope/trunk@1297 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1015 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/actions.c | 5 | ||||
-rw-r--r-- | version.log | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c index 42c8c0e65..17cb7ea7c 100644 --- a/src/actions.c +++ b/src/actions.c @@ -146,6 +146,11 @@ void common_unban(ChannelInfo * ci, char *nick) if (u->hostip == NULL) { host = host_resolve(u->host); + /* we store the just resolved hostname so we don't + * need to do this again */ + if (host) { + u->hostip = sstrdup(host); + } } else { host = sstrdup(u->hostip); } diff --git a/version.log b/version.log index e1f278889..7f7883d5b 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="19" VERSION_EXTRA="-svn" -VERSION_BUILD="1296" +VERSION_BUILD="1297" # $Log$ # +# BUILD : 1.7.19 (1297) +# BUGS : N/A +# NOTES : In the last commit, I forgot to store the just resolved IP in common_unban() so we wont need to +# resolve the host again. +# # BUILD : 1.7.19 (1296) # BUGS : N/A # NOTES : Since we now have u->hostip, lets use it in common_unban() |