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 20:51:05 +0000
committerdrstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2007-08-31 20:51:05 +0000
commit57776f87e6c18ca42249823c0e8ad9c60db657c1 (patch)
tree889b60b15e73f97e23796e7b00ec068af0ab1ade /src
parent317b3e0c4efa277c29e77f8acd3e8b4b000bdc36 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/actions.c8
1 files changed, 6 insertions, 2 deletions
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);