mirror of
https://github.com/osmarks/ngircd.git
synced 2025-03-01 07:20:00 +00:00
Allow IRC Ops and remote servers to KILL service clients (#242)
In the end, service clients behave like regular users, therefore IRC operators and servers should be able to KILL them: for example to resolve nick collisions. This is related to #238.
This commit is contained in:
parent
e009fc87d5
commit
05640f9285
@ -362,7 +362,8 @@ IRC_KillClient(CLIENT *Client, CLIENT *From, const char *Nick, const char *Reaso
|
|||||||
return CONNECTED;
|
return CONNECTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Client_Type(c) != CLIENT_USER && Client_Type(c) != CLIENT_GOTNICK) {
|
if (Client_Type(c) != CLIENT_USER && Client_Type(c) != CLIENT_GOTNICK
|
||||||
|
&& Client_Type(c) != CLIENT_SERVICE) {
|
||||||
/* Target of this KILL is not a regular user, this is
|
/* Target of this KILL is not a regular user, this is
|
||||||
* invalid! So we ignore this case if we received a
|
* invalid! So we ignore this case if we received a
|
||||||
* regular KILL from the network and try to kill the
|
* regular KILL from the network and try to kill the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user