mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-19 03:52:52 +00:00
Only allow IRC services to modify user mode "R"
This commit is contained in:
parent
8349a1c0d9
commit
186ab51137
@ -256,9 +256,8 @@ Client_Mode( CLIENT *Client, REQUEST *Req, CLIENT *Origin, CLIENT *Target )
|
||||
ERR_RESTRICTED_MSG,
|
||||
Client_ID(Origin));
|
||||
break;
|
||||
case 'R': /* Registered (only unsettable) */
|
||||
if (!set || Client_Type(Client) == CLIENT_SERVICE
|
||||
|| Client_Type(Client) == CLIENT_SERVER)
|
||||
case 'R': /* Registered (not [un]settable by clients) */
|
||||
if (Client_Type(Client) == CLIENT_SERVER)
|
||||
x[0] = 'R';
|
||||
else
|
||||
ok = IRC_WriteStrClient(Origin,
|
||||
|
@ -138,7 +138,7 @@
|
||||
#define ERR_CHANOPRIVSNEEDED_MSG "482 %s %s :You are not channel operator"
|
||||
#define ERR_CANTKILLSERVER_MSG "483 %s :You can't kill a server!"
|
||||
#define ERR_RESTRICTED_MSG "484 %s :Your connection is restricted"
|
||||
#define ERR_NICKREGISTER_MSG "484 %s :Cannot set user mode (+R) -- Use IRC services"
|
||||
#define ERR_NICKREGISTER_MSG "484 %s :Cannot modify user mode (+R) -- Use IRC services"
|
||||
#define ERR_NOOPERHOST_MSG "491 %s :Not configured for your host"
|
||||
#define ERR_NOTONSAMECHANNEL_MSG "493 %s :You must share a common channel with %s"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user