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 20:51:05 +0000 |
---|---|---|
committer | drstein 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 |
commit | 57776f87e6c18ca42249823c0e8ad9c60db657c1 (patch) | |
tree | 889b60b15e73f97e23796e7b00ec068af0ab1ade | |
parent | 317b3e0c4efa277c29e77f8acd3e8b4b000bdc36 (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
-rw-r--r-- | src/actions.c | 8 | ||||
-rw-r--r-- | version.log | 6 |
2 files changed, 11 insertions, 3 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); diff --git a/version.log b/version.log index 7c3cc2b86..e1f278889 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="19" VERSION_EXTRA="-svn" -VERSION_BUILD="1295" +VERSION_BUILD="1296" # $Log$ # +# BUILD : 1.7.19 (1296) +# BUGS : N/A +# NOTES : Since we now have u->hostip, lets use it in common_unban() +# # BUILD : 1.7.19 (1295) # BUGS : N/A # NOTES : We now have hostip in user_ struct so we can use it where needed. We wont do host_resolve() unless |