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:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user