diff options
| author | Alexander Barton <alex@barton.de> | 2023-07-18 11:42:07 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2023-07-18 11:42:07 +0200 |
| commit | 0035e0d77867c961b4db6f121f2b43a8d45688bd (patch) | |
| tree | d8a900783ec9427d3f6e6bc1c19b4f85b915ffa5 /src | |
| parent | 0f90a059b6cb211e19a8b379ce37d94c60c8f08a (diff) | |
| download | ngircd-0035e0d77867c961b4db6f121f2b43a8d45688bd.tar.gz ngircd-0035e0d77867c961b4db6f121f2b43a8d45688bd.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-op.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ngircd/irc-op.c b/src/ngircd/irc-op.c index a309ee9f..2bf9e349 100644 --- a/src/ngircd/irc-op.c +++ b/src/ngircd/irc-op.c @@ -222,9 +222,9 @@ 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, - Client_ID(from), Req->argv[0], - colon_if_necessary, Req->argv[1])) + if (!IRC_WriteStrClient(from, RPL_INVITING_MSG, + Client_ID(from), Req->argv[0], + colon_if_necessary, Req->argv[1])) return DISCONNECTED; if (Client_HasMode(target, 'a') && |