3 * Well, it won't stop them all, unless this is loaded on all servers.
5 * Copyright (C) 2013 Elizabeth Myers. All rights reserved.
6 * Licensed under the WTFPLv2
20 #include "privilege.h"
21 #include "s_newconf.h"
23 static void block_services_kill(void *data
);
25 mapi_hfn_list_av1 m_nokillservices_hfnlist
[] = {
26 { "can_kill", (hookfn
) block_services_kill
},
31 block_services_kill(void *vdata
)
33 hook_data_client_approval
*data
= (hook_data_client_approval
*) vdata
;
35 if (!MyClient(data
->client
))
41 if (IsService(data
->target
))
43 sendto_one_notice(data
->client
, ":You may not kill network service %s",
49 DECLARE_MODULE_AV1(m_nokillservices
, NULL
, NULL
, NULL
, NULL
,
50 m_nokillservices_hfnlist
, "Charybdis 3.4+");