projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
search another bot if unable to send funcmd replies over textbot
[NeonServV5.git]
/
src
/
bots.c
diff --git
a/src/bots.c
b/src/bots.c
index 076c0cb12a8be738fe98509b521dcd6cd1095d39..7da678c97ffb3b4a185f9b0dea6b74f3c69431ae 100644
(file)
--- a/
src/bots.c
+++ b/
src/bots.c
@@
-27,6
+27,7
@@
#include "DBHelper.h"
#include "IRCEvents.h"
#include "tools.h"
#include "DBHelper.h"
#include "IRCEvents.h"
#include "tools.h"
+#include "log.h"
struct cmd_bot_alias {
int botid;
struct cmd_bot_alias {
int botid;
@@
-275,7
+276,7
@@
void set_bot_alias(int botid, char *alias) {
}
botalias = malloc(sizeof(*botalias));
if (!botalias) {
}
botalias = malloc(sizeof(*botalias));
if (!botalias) {
- p
error("malloc() failed"
);
+ p
rintf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return;
}
botalias->botid = botid;
return;
}
botalias->botid = botid;