mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
Invite: Send RPL_AWAY to client sending the invite if target is away.
This commit is contained in:
parent
faf9b6ea16
commit
3283d275ba
@ -125,8 +125,14 @@ IRC_INVITE(CLIENT *Client, REQUEST *Req)
|
|||||||
|
|
||||||
if (Client_Conn(target) > NONE) {
|
if (Client_Conn(target) > NONE) {
|
||||||
/* The target user is local, so we have to send the status code */
|
/* The target user is local, so we have to send the status code */
|
||||||
if (!IRC_WriteStrClientPrefix(from, target, RPL_INVITING_MSG, Client_ID(from), Req->argv[0], Req->argv[1]))
|
if (!IRC_WriteStrClientPrefix(from, target, RPL_INVITING_MSG,
|
||||||
|
Client_ID(from), Req->argv[0], Req->argv[1]))
|
||||||
return DISCONNECTED;
|
return DISCONNECTED;
|
||||||
|
|
||||||
|
if (strchr(Client_Modes(target), 'a') &&
|
||||||
|
!IRC_WriteStrClient(from, RPL_AWAY_MSG, Client_ID(from),
|
||||||
|
Client_ID(target), Client_Away(target)))
|
||||||
|
return DISCONNECTED;
|
||||||
}
|
}
|
||||||
return CONNECTED;
|
return CONNECTED;
|
||||||
} /* IRC_INVITE */
|
} /* IRC_INVITE */
|
||||||
|
Loading…
Reference in New Issue
Block a user