summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-30 09:47:20 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-30 09:47:20 +0000
commiteb4510946fc6fe4ee85ae1e2af2056a15237a78f (patch)
tree5513d584f65f32cfed4c3979135ff81a569f690a
parent104b52b06e6fe70d4ce5394fe679babef4bc7770 (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
-rw-r--r--Changes7
-rw-r--r--src/protocol/inspircd11.c8
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. <team@anope.org> - 2009
01/26 F Readonly/noexpire are now checked before saving on shutdown. [ #00]
Provided by mooncup <mooncup@anonnet.org> - 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 <Adam@SubZeroIRC.net> - 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