X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonSpam.mod%2Fbot_NeonSpam.c;h=dd2e4d1043fc722ecdabd593808150fba2fda330;hb=ee39770362f69ced5b52104b622582e882af0b77;hp=1fd3a6fe1f33be8457b0d1a7d1439f49922edfd6;hpb=cdebdaa89c585c948a7abbfcda22fed6b029d9da;p=NeonServV5.git diff --git a/src/modules/NeonSpam.mod/bot_NeonSpam.c b/src/modules/NeonSpam.mod/bot_NeonSpam.c index 1fd3a6f..dd2e4d1 100644 --- a/src/modules/NeonSpam.mod/bot_NeonSpam.c +++ b/src/modules/NeonSpam.mod/bot_NeonSpam.c @@ -1,4 +1,4 @@ -/* bot_NeonSpam.c - NeonServ v5.5 +/* bot_NeonSpam.c - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -225,7 +225,7 @@ int loadNeonSpamSettings(struct ChanNode *chan) { if(chan->spam_settings) return 0; struct NeonSpamSettings *settings = malloc(sizeof(*settings)); if(!settings) { - perror("malloc() failed"); + printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return 0; } MYSQL_RES *res; @@ -321,7 +321,7 @@ static struct NeonSpamJoinNode *getNeonSpamJoinNode(struct ChanUser *chanuser) { return result; joinnode = malloc(sizeof(*joinnode)); if(!joinnode) { - perror("malloc() failed"); + printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); 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) { - perror("malloc() failed"); + printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return; } spamnode->lastmsg = 0; @@ -402,10 +402,6 @@ void init_NeonSpam(int type) { register_default_language_table(msgtab); } -void loop_NeonSpam() { - -} - void free_NeonSpam(int type) { unbind_allcmd(BOTID); if(type == MODSTATE_STARTSTOP) {