projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed timeq (free name before executing the callback)
[NeonServV5.git]
/
src
/
ChanNode.c
diff --git
a/src/ChanNode.c
b/src/ChanNode.c
index cf3c1dbef1a4950357bd54e3a269eacf89d1d53a..44a335f1cb822f2d7c414ebeef955781c93601c1 100644
(file)
--- a/
src/ChanNode.c
+++ b/
src/ChanNode.c
@@
-21,6
+21,8
@@
#include "modcmd.h"
#include "ModeNode.h"
#include "IRCEvents.h"
#include "modcmd.h"
#include "ModeNode.h"
#include "IRCEvents.h"
+#include "tools.h"
+#include "log.h"
static struct ChanNode **chanList;
static struct ChanNode **chanList;
@@
-130,7
+132,7
@@
struct ChanNode* addChannel(const char *name) {
struct ChanNode *chan = malloc(sizeof(*chan));
if (!chan)
{
struct ChanNode *chan = malloc(sizeof(*chan));
if (!chan)
{
- p
error("malloc() failed"
);
+ p
rintf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return NULL;
}
strcpy(chan->name, name);
return NULL;
}
strcpy(chan->name, name);