From eb4510946fc6fe4ee85ae1e2af2056a15237a78f Mon Sep 17 00:00:00 2001 From: rburchell Date: Mon, 30 Mar 2009 09:47:20 +0000 Subject: [PATCH] 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 --- Changes | 7 +++++-- src/protocol/inspircd11.c | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index 6ffbf2bc3..8253e7533 100644 --- a/Changes +++ b/Changes @@ -9,12 +9,15 @@ Provided by Anope Dev. - 2009 01/26 F Readonly/noexpire are now checked before saving on shutdown. [ #00] Provided by mooncup - 2009 -02/04 F Automatically reapply vhost on hs off for unreal32. [ #00] +02/04 F Automatically reapply vhost on hs off for unreal32. [ #00] Provided by Adam - 2009 -07/03 F Channel list re-ordering. [#1024] +03/07 F Channel list re-ordering. [#1024] 01/28 F Added internal support for +j channelmodes. [#1001] +Provided by Szymek <> - 2009 +03/30 F Fix HS OFF to work in all cases on InspIRCd. [#1075] + Anope Version 1.8.0 ------------------- 10/19 F Updated Anope Credits [ #00] 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