if(isModeSet(chan->modes, 'd') || isModeSet(chan->modes, 'D')) {
struct neonserv_cmd_up_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;