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 21:19:50 +0000
committerdrstein 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
commit5088cdcf99af8b7427aaed5c62bc208607be4f13 (patch)
treeb778a83fdd8f6a4ff8d177a3693c7865c5d671c9 /src
parent57776f87e6c18ca42249823c0e8ad9c60db657c1 (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
Diffstat (limited to 'src')
-rw-r--r--src/actions.c5
1 files changed, 5 insertions, 0 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);
}