X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fcmd_neonserv_unvisited.c;h=5f1572e17ee823fc4075f1ce1f8359d064bf9768;hb=caa3238cc43909d4d3a27ff95b77f9ab23f85baf;hp=07b75018d6bbc1c93b2c4710fdcd900294e1572b;hpb=fc61be208ca6dbf2fd915591c8dc7e5ef5779891;p=NeonServV5.git diff --git a/src/modules/NeonServ.mod/cmd_neonserv_unvisited.c b/src/modules/NeonServ.mod/cmd_neonserv_unvisited.c index 07b7501..5f1572e 100644 --- a/src/modules/NeonServ.mod/cmd_neonserv_unvisited.c +++ b/src/modules/NeonServ.mod/cmd_neonserv_unvisited.c @@ -69,7 +69,7 @@ static void neonserv_check_unvisited(struct ClientSocket *client, struct ClientS struct ChanNode *channel; struct neonserv_cmd_unvisited_cache *cache = malloc(sizeof(*cache)); if (!cache) { - perror("malloc() failed"); + printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return; } cache->client = client; @@ -195,7 +195,7 @@ static void neonserv_cmd_unvisited_unreg(struct ClientSocket *client, char *chan putsock(bot, "PART %s :Channel unregistered.", channel); } } - if(client->botid == NEONSERV_BOTID) { + if(botid == NEONSERV_BOTID) { char setting[128]; sprintf(setting, "modules.%s.auto_backup_unregister", get_module_name(module_id)); if(get_int_field(setting))