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;
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))