(thanks to the people reading git and excessively exploiting this bug... It was undet...
[NeonServV5.git] / src / bots.c
index 693901df990f4cca627a325c77f5cc425254e8fb..7da678c97ffb3b4a185f9b0dea6b74f3c69431ae 100644 (file)
@@ -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;