diff options
-rw-r--r-- | src/actions.c | 5 | ||||
-rw-r--r-- | version.log | 7 |
2 files changed, 11 insertions, 1 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); } diff --git a/version.log b/version.log index e1f278889..7f7883d5b 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="19" VERSION_EXTRA="-svn" -VERSION_BUILD="1296" +VERSION_BUILD="1297" # $Log$ # +# 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. +# # BUILD : 1.7.19 (1296) # BUGS : N/A # NOTES : Since we now have u->hostip, lets use it in common_unban() |