X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fbots.c;h=7da678c97ffb3b4a185f9b0dea6b74f3c69431ae;hp=076c0cb12a8be738fe98509b521dcd6cd1095d39;hb=f6bdc9d0fc8db22c265918f3325e11177fd001b9;hpb=73e82db5a85f3679af9dc0880aba813c6d299372 diff --git a/src/bots.c b/src/bots.c index 076c0cb..7da678c 100644 --- a/src/bots.c +++ b/src/bots.c @@ -27,6 +27,7 @@ #include "DBHelper.h" #include "IRCEvents.h" #include "tools.h" +#include "log.h" struct cmd_bot_alias { int botid; @@ -275,7 +276,7 @@ void set_bot_alias(int botid, char *alias) { } botalias = malloc(sizeof(*botalias)); if (!botalias) { - perror("malloc() failed"); + printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return; } botalias->botid = botid;