1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-27 20:36:18 +00:00

Fix RPL_INVITING message: It must originate from the server

All numeric replies must originate from an IRC server, never from a
client. So fix the RPL_INVITING message!

Thanks tommyrot for reporting this!

Closes #307.
This commit is contained in:
Alexander Barton 2023-07-18 11:42:07 +02:00
parent 0f90a059b6
commit 0035e0d778

View File

@ -222,7 +222,7 @@ IRC_INVITE(CLIENT *Client, REQUEST *Req)
if (Client_Conn(target) > NONE) {
/* The target user is local, so we have to send the status code */
if (!IRC_WriteStrClientPrefix(from, target, RPL_INVITING_MSG,
if (!IRC_WriteStrClient(from, RPL_INVITING_MSG,
Client_ID(from), Req->argv[0],
colon_if_necessary, Req->argv[1]))
return DISCONNECTED;