From 2539f34d3cd0de17c6c43b59faa4f9d7066fca8e Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 21 Mar 2011 03:06:43 -0400 Subject: [PATCH] Forgot vidents --- src/protocol/hybrid.c | 12 +++++++++--- 1 file 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)