Skip to content

Commit

Permalink
Allow IRC Ops and remote servers to KILL service clients
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexbarton committed Sep 26, 2017
1 parent e009fc8 commit 8416e46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ngircd/irc.c
Expand Up @@ -362,7 +362,8 @@ IRC_KillClient(CLIENT *Client, CLIENT *From, const char *Nick, const char *Reaso
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
* invalid! So we ignore this case if we received a
* regular KILL from the network and try to kill the
Expand Down

0 comments on commit 8416e46

Please sign in to comment.