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/protocol/unreal31.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/protocol/unreal31.c') diff --git a/src/protocol/unreal31.c b/src/protocol/unreal31.c index 2284a9faf..76a31c4cf 100644 --- a/src/protocol/unreal31.c +++ b/src/protocol/unreal31.c @@ -424,6 +424,12 @@ void unreal_set_umode(User * user, int ac, char **av) } break; case 'x': + if (!add) + { + if (user->vhost) + free(user->vhost); + user->vhost = NULL; + } update_host(user); break; } @@ -518,7 +524,8 @@ void unreal_cmd_topic(char *whosets, char *chan, char *whosetit, void unreal_cmd_vhost_off(User * u) { - send_cmd(s_HostServ, "SVSMODE %s -xt", u->nick); + common_svsmode(u, "-xt", NULL); + common_svsmode(u, "+x", NULL); notice_lang(s_HostServ, u, HOST_OFF_UNREAL, u->nick, ircd->vhostchar); } -- cgit