projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed modcmd subcommand linker: do not cut off the first parameter if no subcommand...
[NeonServV5.git]
/
src
/
ModeNode.c
diff --git
a/src/ModeNode.c
b/src/ModeNode.c
index 45de9a01eb0d2858c16f592c0d41016bf6a7aa16..f3579cd42b71654ae34d168eddec03bf6393b5c8 100644
(file)
--- a/
src/ModeNode.c
+++ b/
src/ModeNode.c
@@
-1,4
+1,4
@@
-/* ModeNode.c - NeonServ v5.
5
+/* ModeNode.c - NeonServ v5.
6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-19,6
+19,7
@@
#include "ChanUser.h"
#include "UserNode.h"
#include "BanNode.h"
#include "ChanUser.h"
#include "UserNode.h"
#include "BanNode.h"
+#include "log.h"
static int modes_with_strarg, modes_with_intarg, modes_count;
static int modes_with_strarg, modes_with_intarg, modes_count;
@@
-77,7
+78,7
@@
struct ModeNode *createModeNode(struct ChanNode *chan) {
struct ModeNode *modes = malloc(sizeof(*modes));
if (!modes)
{
struct ModeNode *modes = malloc(sizeof(*modes));
if (!modes)
{
- p
error("malloc() failed"
);
+ p
rintf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return NULL;
}
modes->chan = chan;
return NULL;
}
modes->chan = chan;