From: Alexander Barton Date: Tue, 26 Sep 2017 21:11:41 +0000 (+0200) Subject: Allow IRC Ops and remote servers to KILL service clients X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=8416e469cd9f55ae2d7b72ef2fb0a9bf0cc603d9 Allow IRC Ops and remote servers to KILL service clients 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. --- diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c index a6f04cba..7acd84ee 100644 --- a/src/ngircd/irc.c +++ b/src/ngircd/irc.c @@ -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