From 5088cdcf99af8b7427aaed5c62bc208607be4f13 Mon Sep 17 00:00:00 2001 From: "drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Fri, 31 Aug 2007 21:19:50 +0000 Subject: 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 --- src/actions.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/actions.c') 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); } -- cgit