diff options
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 5 |
1 files changed, 5 insertions, 0 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); } |