diff options
Diffstat (limited to 'src/core/hs_on.c')
-rw-r--r-- | src/core/hs_on.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hs_on.c b/src/core/hs_on.c index 5d102273c..bbae6f73e 100644 --- a/src/core/hs_on.c +++ b/src/core/hs_on.c @@ -39,7 +39,11 @@ class CommandHSOn : public Command notice_lang(s_HostServ, u, HOST_ACTIVATED, vHost); ircdproto->SendVhost(u->nick, vIdent, vHost); if (ircd->vhost) + { + if (u->vhost) + delete [] u->vhost; u->vhost = sstrdup(vHost); + } if (ircd->vident) { if (vIdent) |