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/unreal32.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/protocol/unreal32.c') diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index 0919fabbe..f93dc8236 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -489,6 +489,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; } @@ -532,18 +538,9 @@ void unreal_cmd_topic(char *whosets, char *chan, char *whosetit, void unreal_cmd_vhost_off(User * u) { - if (UseSVS2MODE) { - send_cmd(s_HostServ, "%s %s -xt", send_token("SVS2MODE", "v"), - u->nick); - send_cmd(s_HostServ, "%s %s +x", send_token("SVS2MODE", "v"), - u->nick); - } else { - send_cmd(s_HostServ, "%s %s -xt", send_token("SVSMODE", "n"), - u->nick); - send_cmd(s_HostServ, "%s %s +x", send_token("SVSMODE", "n"), - u->nick); + common_svsmode(u, "-xt", NULL); + common_svsmode(u, "+x", NULL); - } notice_lang(s_HostServ, u, HOST_OFF); } -- cgit