1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 16:33:12 +02:00

- Made +x send out a SETHOST to VHP servers, requested by PreZ@DarkerNet

This commit is contained in:
stskeeps
2002-08-04 08:41:55 +00:00
parent b4f0d0fc9d
commit 31d2224b2c
4 changed files with 10 additions and 1 deletions
+2
View File
@@ -2355,6 +2355,8 @@ CMD_FUNC(m_umode)
}
sptr->user->virthost = (char *)make_virthost(sptr->user->realhost,
sptr->user->virthost, 1);
sendto_serv_butone_token_opt(cptr, OPT_VHP, sptr->name,
MSG_SETHOST, TOK_SETHOST, "%s", sptr->user->virthost);
}
if (!IsHidden(sptr) && (setflags & UMODE_HIDE))
{
+4
View File
@@ -793,6 +793,10 @@ void sendto_serv_butone_token_opt(aClient *one, int opt, char *prefix, char *com
continue;
if ((opt & OPT_NOT_SJB64) && (cptr->proto & PROTO_SJB64))
continue;
if ((opt & OPT_VHP) && !(cptr->proto & PROTO_VHP))
continue;
if ((opt & OPT_NOT_VHP) && (cptr->proto & PROTO_VHP))
continue;
if (IsToken(cptr))
{