projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added new multi log system
[NeonServV5.git]
/
src
/
modules
/
NeonSpam.mod
/
bot_NeonSpam.c
diff --git
a/src/modules/NeonSpam.mod/bot_NeonSpam.c
b/src/modules/NeonSpam.mod/bot_NeonSpam.c
index d261b790dd13542319104af63f6c63922db43187..dd2e4d1043fc722ecdabd593808150fba2fda330 100644
(file)
--- a/
src/modules/NeonSpam.mod/bot_NeonSpam.c
+++ b/
src/modules/NeonSpam.mod/bot_NeonSpam.c
@@
-225,7
+225,7
@@
int loadNeonSpamSettings(struct ChanNode *chan) {
if(chan->spam_settings) return 0;
struct NeonSpamSettings *settings = malloc(sizeof(*settings));
if(!settings) {
if(chan->spam_settings) return 0;
struct NeonSpamSettings *settings = malloc(sizeof(*settings));
if(!settings) {
- p
error("malloc() failed"
);
+ p
rintf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return 0;
}
MYSQL_RES *res;
return 0;
}
MYSQL_RES *res;
@@
-321,7
+321,7
@@
static struct NeonSpamJoinNode *getNeonSpamJoinNode(struct ChanUser *chanuser) {
return result;
joinnode = malloc(sizeof(*joinnode));
if(!joinnode) {
return result;
joinnode = malloc(sizeof(*joinnode));
if(!joinnode) {
- p
error("malloc() failed"
);
+ p
rintf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return NULL;
}
joinnode->ident = strdup(chanuser->user->ident);
return NULL;
}
joinnode->ident = strdup(chanuser->user->ident);
@@
-336,7
+336,7
@@
static struct NeonSpamJoinNode *getNeonSpamJoinNode(struct ChanUser *chanuser) {
static void createSpamNode(struct ChanUser *chanuser) {
struct NeonSpamNode *spamnode = malloc(sizeof(*spamnode));
if(!spamnode) {
static void createSpamNode(struct ChanUser *chanuser) {
struct NeonSpamNode *spamnode = malloc(sizeof(*spamnode));
if(!spamnode) {
- p
error("malloc() failed"
);
+ p
rintf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return;
}
spamnode->lastmsg = 0;
return;
}
spamnode->lastmsg = 0;