X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fbots.c;h=7da678c97ffb3b4a185f9b0dea6b74f3c69431ae;hb=54ef844b721b720e9cc81dc4737c299a0e84cb59;hp=693901df990f4cca627a325c77f5cc425254e8fb;hpb=7289d420ddc81d9975ed6d55dfdfd70dff2b2d48;p=NeonServV5.git diff --git a/src/bots.c b/src/bots.c index 693901d..7da678c 100644 --- a/src/bots.c +++ b/src/bots.c @@ -26,6 +26,8 @@ #include "modcmd.h" #include "DBHelper.h" #include "IRCEvents.h" +#include "tools.h" +#include "log.h" struct cmd_bot_alias { int botid; @@ -274,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;