/* 000-001 */ #include "main.h"
/* 002-004 */ #include "tools.h"
/* 005-006 */ /* deprecated */
/* 000-001 */ #include "main.h"
/* 002-004 */ #include "tools.h"
/* 005-006 */ /* deprecated */
/* 012 */ #include "BanNode.h"
/* 013-019 */ #include "bots.h"
/* 020-025 */ #include "ChanNode.h"
/* 012 */ #include "BanNode.h"
/* 013-019 */ #include "bots.h"
/* 020-025 */ #include "ChanNode.h"
/* 007 */ (Function) restart_bot,
/* 008 */ (Function) stop_bot,
/* 009 */ (Function) reload_config,
/* 007 */ (Function) restart_bot,
/* 008 */ (Function) stop_bot,
/* 009 */ (Function) reload_config,
- putlog(LOGLEVEL_ERROR, "Error loading module '%s': %s not found.\n", name, fname);
+ printf_log("main", LOG_ERROR, "Error loading module '%s': %s not found.\n", name, fname);
sprintf(fname, "%s.dll", name);
HMODULE module = LoadLibrary(fname);
if(!module) {
sprintf(fname, "%s.dll", name);
HMODULE module = LoadLibrary(fname);
if(!module) {
- putlog(LOGLEVEL_ERROR, "Error loading module '%s': %s not found.\n", name, fname);
+ printf_log("main", LOG_ERROR, "Error loading module '%s': %s not found.\n", name, fname);
FARPROC modversion = GetProcAddress(module, "modversion");
#endif
if(!startfunc || !stopfunc || !modversion) {
FARPROC modversion = GetProcAddress(module, "modversion");
#endif
if(!startfunc || !stopfunc || !modversion) {
- putlog(LOGLEVEL_ERROR, "Error loading module '%s': required symbols not found.\n", name);
+ printf_log("main", LOG_ERROR, "Error loading module '%s': required symbols not found.\n", name);
- putlog(LOGLEVEL_ERROR, "Error loading module '%s': version mismatch ('%d' main code, '%d' module)\n", name, MODULE_VERSION, version);
+ printf_log("main", LOG_ERROR, "Error loading module '%s': version mismatch ('%d' main code, '%d' module)\n", name, MODULE_VERSION, version);
return NULL;
}
//start module
int errid;
int module_id = module_id_counter++;
if((errid = ((int (*)(void **, int)) initfunc)(global_functions, module_id))) {
return NULL;
}
//start module
int errid;
int module_id = module_id_counter++;
if((errid = ((int (*)(void **, int)) initfunc)(global_functions, module_id))) {
- putlog(LOGLEVEL_ERROR, "Error loading module '%s': module reported error (errid: %d)\n", name, errid);
+ printf_log("main", LOG_ERROR, "Error loading module '%s': module reported error (errid: %d)\n", name, errid);