X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FModeNode.c;h=f3579cd42b71654ae34d168eddec03bf6393b5c8;hp=8cc5b67a07328f6f055060bc2f5105f5b009a9db;hb=HEAD;hpb=8ce78bf760720d04385821abba8f888b5de03140 diff --git a/src/ModeNode.c b/src/ModeNode.c index 8cc5b67..f3579cd 100644 --- a/src/ModeNode.c +++ b/src/ModeNode.c @@ -19,6 +19,7 @@ #include "ChanUser.h" #include "UserNode.h" #include "BanNode.h" +#include "log.h" 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) { - perror("malloc() failed"); + printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return NULL; } modes->chan = chan;