From 57776f87e6c18ca42249823c0e8ad9c60db657c1 Mon Sep 17 00:00:00 2001 From: "drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Fri, 31 Aug 2007 20:51:05 +0000 Subject: BUILD : 1.7.19 (1296) BUGS : N/A NOTES : Since we now have u->hostip, lets use it in common_unban() git-svn-id: svn://svn.anope.org/anope/trunk@1296 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1014 5417fbe8-f217-4b02-8779-1006273d7864 --- src/actions.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/actions.c b/src/actions.c index af08fd564..42c8c0e65 100644 --- a/src/actions.c +++ b/src/actions.c @@ -133,7 +133,7 @@ void common_unban(ChannelInfo * ci, char *nick) int count, i; char *av[3], **bans; User *u; - char *host; + char *host = NULL; int matchfound = 0; if (!ci || !ci->c || !nick) { @@ -144,7 +144,11 @@ void common_unban(ChannelInfo * ci, char *nick) return; } - host = host_resolve(u->host); + if (u->hostip == NULL) { + host = host_resolve(u->host); + } else { + host = sstrdup(u->hostip); + } if (ircd->svsmode_unban) { anope_cmd_unban(ci->name, nick); -- cgit