diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-30 09:47:20 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-30 09:47:20 +0000 |
commit | eb4510946fc6fe4ee85ae1e2af2056a15237a78f (patch) | |
tree | 5513d584f65f32cfed4c3979135ff81a569f690a /src | |
parent | 104b52b06e6fe70d4ce5394fe679babef4bc7770 (diff) |
Modified patch to change vhost removal to work correctly in all cases, originally by Szymek.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2221 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol/inspircd11.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index cd106b99b..ed9acd211 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -551,7 +551,13 @@ inspircd_cmd_topic(char *whosets, char *chan, char *whosetit, void inspircd_cmd_vhost_off(User * u) { - send_cmd(s_HostServ, "MODE %s -x", u->nick); + send_cmd(s_OperServ, "MODE %s -%s", u->nick, myIrcd->vhostchar); + inspircd_cmd_chghost(u->nick, u->host); + + if (has_chgidentmod && u->username && u->vident && strcmp(u->username, u->vident) > 0) + { + inspircd_cmd_chgident(u->nick, u->username); + } } void |