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_ban.c
diff --git
a/cmd_neonserv_ban.c
b/cmd_neonserv_ban.c
index ee43f21fe2ad2e8ded01a63d0a3e3aedfde0c33e..eec73264dceac76143ec0fbdf2074e9f8722b1b0 100644
(file)
--- a/
cmd_neonserv_ban.c
+++ b/
cmd_neonserv_ban.c
@@
-1,4
+1,6
@@
+#include "cmd_neonserv.h"
+
/*
* argv[0-*] nick[,*auth[,*!*@mask[...]]]
*/
/*
* argv[0-*] nick[,*auth[,*!*@mask[...]]]
*/
@@
-12,7
+14,7
@@
struct neonserv_cmd_ban_cache {
char *masks;
};
char *masks;
};
-
static
CMD_BIND(neonserv_cmd_ban) {
+CMD_BIND(neonserv_cmd_ban) {
struct neonserv_cmd_ban_cache *cache = malloc(sizeof(*cache));
if (!cache) {
perror("malloc() failed");
struct neonserv_cmd_ban_cache *cache = malloc(sizeof(*cache));
if (!cache) {
perror("malloc() failed");