From b5242e3be0801abd0edebf62955b1d1b6cd3fd7d Mon Sep 17 00:00:00 2001 From: Adam- Date: Tue, 1 Dec 2009 00:06:21 +0000 Subject: Fixed bug #1106 - Anope now keeps track of users cloaked hosts as well as virtual host and will use both in matching for things git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2679 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/hs_off.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/hs_off.c b/src/core/hs_off.c index 54bfeca75..045061657 100644 --- a/src/core/hs_off.c +++ b/src/core/hs_off.c @@ -75,8 +75,12 @@ int do_off(User * u) vident = getvIdent(u->nick); if (vhost == NULL && vident == NULL) notice_lang(s_HostServ, u, HOST_NOT_ASSIGNED); - else + else { anope_cmd_vhost_off(u); + if (u->vhost) + free(u->vhost); + u->vhost = NULL; + } } else { notice_lang(s_HostServ, u, HOST_ID); } -- cgit