diff options
author | Adam <Adam@anope.org> | 2011-03-21 03:06:43 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-21 03:06:43 -0400 |
commit | 2539f34d3cd0de17c6c43b59faa4f9d7066fca8e (patch) | |
tree | 13ce322fd40ca3b777ec56efcc7b9755b56b97eb | |
parent | 7eb437b9fea8253ef95813870c653b3c9646e07a (diff) |
Forgot vidents
-rw-r--r-- | src/protocol/hybrid.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/protocol/hybrid.c b/src/protocol/hybrid.c index 14798aafa..6a27c33ad 100644 --- a/src/protocol/hybrid.c +++ b/src/protocol/hybrid.c @@ -716,14 +716,20 @@ void hybrid_cmd_topic(char *whosets, char *chan, char *whosetit, void hybrid_cmd_vhost_off(User * u) { - if (ircd->vhost) + if (ircd->vhost && ircd->vident) + { + send_cmd(NULL, "ENCAP * CHGIDENT %s %s", u->nick, u->username); send_cmd(NULL, "ENCAP * CHGHOST %s %s", u->nick, u->host); + } } void hybrid_cmd_vhost_on(char *nick, char *vIdent, char *vhost) { - if (ircd->vhost) + if (ircd->vhost && ircd->vident) + { + send_cmd(NULL, "ENCAP * CHGIDENT %s %s", nick, vIdent); send_cmd(NULL, "ENCAP * CHGHOST %s %s", nick, vhost); + } } void hybrid_cmd_unsqline(char *user) @@ -1491,7 +1497,7 @@ int hybrid_event_notice(char *source, int argc, char **argv) } else if (!ircd->vhost && !strcmp(argv[0], s_ChanServ) && !strcmp(argv[1], "Invalid hostname")) { - ircd->vhost = 1; + ircd->vhost = ircd->vident = 1; ircd->hostservmode = ircd->hostservaliasmode = sstrdup("+o"); alog("VHost support enabled"); if (s_HostServ) |