]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc.c
Allow IRC Ops and remote servers to KILL service clients (#242)
[ngircd-alex.git] / src / ngircd / irc.c
index a6f04cba37a33412ae644d2414732183d5ea978e..7acd84ee7857fa0a9a3b5e7af54b9384c9547f0f 100644 (file)
@@ -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