projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed Makefile; build all commands as an own file
[NeonServV5.git]
/
cmd_neonserv_kickban.c
diff --git
a/cmd_neonserv_kickban.c
b/cmd_neonserv_kickban.c
index 3d0081fa2cf217146cd8f77fb0952c83f4f09b84..190770671ca620ef171db92f11e9af17c9dd28d0 100644
(file)
--- a/
cmd_neonserv_kickban.c
+++ b/
cmd_neonserv_kickban.c
@@
-1,4
+1,6
@@
+#include "cmd_neonserv.h"
+
/*
* argv[0] nick[,*auth[,*!*@mask[...]]]
* argv[1-*] reason
/*
* argv[0] nick[,*auth[,*!*@mask[...]]]
* argv[1-*] reason
@@
-14,7
+16,7
@@
struct neonserv_cmd_kickban_cache {
char *reason;
};
char *reason;
};
-
static
CMD_BIND(neonserv_cmd_kickban) {
+CMD_BIND(neonserv_cmd_kickban) {
struct neonserv_cmd_kickban_cache *cache = malloc(sizeof(*cache));
if (!cache) {
perror("malloc() failed");
struct neonserv_cmd_kickban_cache *cache = malloc(sizeof(*cache));
if (!cache) {
perror("malloc() failed");