]> jfr.im git - irc/atheme/atheme-contrib-modules.git/commitdiff
os_kill.c: a few fixups
authorAaron Jones <redacted>
Sat, 30 Jun 2018 17:30:42 +0000 (17:30 +0000)
committerAaron Jones <redacted>
Sat, 30 Jun 2018 17:30:42 +0000 (17:30 +0000)
- Remove unnecessary forward declarations
- Apply atheme/atheme@e1df27b9fbecc2267baa

os_kill.c

index 4d1dfc78d7086edc315c9243448a7b8a72e66748..8dc10212a3eaf6220b98c7d6744d06a2a734228e 100644 (file)
--- a/os_kill.c
+++ b/os_kill.c
 
 #include "atheme-compat.h"
 
-static void os_cmd_kill(sourceinfo_t *si, int parc, char *parv[]);
-
-command_t os_kill = { "KILL", "Kill a user with Services.", PRIV_OMODE, 2, os_cmd_kill, { .path = "contrib/kill" } };
-
 static void
 os_cmd_kill(sourceinfo_t *si, int parc, char *parv[])
 {
@@ -39,6 +35,15 @@ os_cmd_kill(sourceinfo_t *si, int parc, char *parv[])
        kill_user(si->service->me, target, "Requested: %s", parv[1]);
 }
 
+static command_t os_kill = {
+       .name           = "KILL",
+       .desc           = N_("Kill a user with Services."),
+       .access         = PRIV_OMODE,
+       .maxparc        = 2,
+       .cmd            = &os_cmd_kill,
+       .help           = { .path = "contrib/kill" },
+};
+
 static void
 mod_init(module_t *const restrict m)
 {