mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 18:00:28 +00:00
Fix ERR_{SUMMON|USERS}DISABLED: don't repeat command name in reply
This commit is contained in:
parent
f2fa1045e2
commit
73781c1b38
@ -648,10 +648,10 @@ IRC_STATS( CLIENT *Client, REQUEST *Req )
|
|||||||
* therefore answers with ERR_SUMMONDISABLED.
|
* therefore answers with ERR_SUMMONDISABLED.
|
||||||
*/
|
*/
|
||||||
GLOBAL bool
|
GLOBAL bool
|
||||||
IRC_SUMMON(CLIENT * Client, REQUEST * Req)
|
IRC_SUMMON(CLIENT * Client, UNUSED REQUEST * Req)
|
||||||
{
|
{
|
||||||
return IRC_WriteStrClient(Client, ERR_SUMMONDISABLED_MSG,
|
return IRC_WriteStrClient(Client, ERR_SUMMONDISABLED_MSG,
|
||||||
Client_ID(Client), Req->command);
|
Client_ID(Client));
|
||||||
} /* IRC_SUMMON */
|
} /* IRC_SUMMON */
|
||||||
|
|
||||||
|
|
||||||
@ -741,10 +741,10 @@ IRC_USERHOST(CLIENT *Client, REQUEST *Req)
|
|||||||
* See RFC 2812 section 4.6. As suggested there the command is disabled.
|
* See RFC 2812 section 4.6. As suggested there the command is disabled.
|
||||||
*/
|
*/
|
||||||
GLOBAL bool
|
GLOBAL bool
|
||||||
IRC_USERS(CLIENT * Client, REQUEST * Req)
|
IRC_USERS(CLIENT * Client, UNUSED REQUEST * Req)
|
||||||
{
|
{
|
||||||
return IRC_WriteStrClient(Client, ERR_USERSDISABLED_MSG,
|
return IRC_WriteStrClient(Client, ERR_USERSDISABLED_MSG,
|
||||||
Client_ID(Client), Req->command);
|
Client_ID(Client));
|
||||||
} /* IRC_USERS */
|
} /* IRC_USERS */
|
||||||
|
|
||||||
|
|
||||||
|
@ -114,8 +114,8 @@
|
|||||||
#define ERR_USERNOTINCHANNEL_MSG "441 %s %s %s :They aren't on that channel"
|
#define ERR_USERNOTINCHANNEL_MSG "441 %s %s %s :They aren't on that channel"
|
||||||
#define ERR_NOTONCHANNEL_MSG "442 %s %s :You are not on that channel"
|
#define ERR_NOTONCHANNEL_MSG "442 %s %s :You are not on that channel"
|
||||||
#define ERR_USERONCHANNEL_MSG "443 %s %s %s :is already on channel"
|
#define ERR_USERONCHANNEL_MSG "443 %s %s %s :is already on channel"
|
||||||
#define ERR_SUMMONDISABLED_MSG "445 %s %s :SUMMON has been disabled"
|
#define ERR_SUMMONDISABLED_MSG "445 %s :SUMMON has been disabled"
|
||||||
#define ERR_USERSDISABLED_MSG "446 %s %s :USERS has been disabled"
|
#define ERR_USERSDISABLED_MSG "446 %s :USERS has been disabled"
|
||||||
#define ERR_NOTREGISTERED_MSG "451 %s :Connection not registered"
|
#define ERR_NOTREGISTERED_MSG "451 %s :Connection not registered"
|
||||||
#define ERR_NOTREGISTEREDSERVER_MSG "451 %s :Connection not registered as server link"
|
#define ERR_NOTREGISTEREDSERVER_MSG "451 %s :Connection not registered as server link"
|
||||||
#define ERR_NEEDMOREPARAMS_MSG "461 %s %s :Syntax error"
|
#define ERR_NEEDMOREPARAMS_MSG "461 %s %s :Syntax error"
|
||||||
|
Loading…
Reference in New Issue
Block a user