summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actions.c8
-rw-r--r--version.log6
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