* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
- system(gcore); //generate core file
- coregen = "core file generated.";
+ int sysretn = system(gcore); //generate core file
+ sprintf(coregen, "core file generated. (%d)", sysretn);
putlog(LOGLEVEL_ERROR | LOGLEVEL_INFO, "generated core file.\n");
#endif
char *alertchan = get_string_field("General.alertchan");
putlog(LOGLEVEL_ERROR | LOGLEVEL_INFO, "generated core file.\n");
#endif
char *alertchan = get_string_field("General.alertchan");
struct ClientSocket *bot;
for(bot = getBots(SOCKET_FLAG_READY, NULL); bot; bot = getBots(SOCKET_FLAG_READY, bot)) {
if((bot->flags & SOCKET_FLAG_CONNECTED)) {
struct ClientSocket *bot;
for(bot = getBots(SOCKET_FLAG_READY, NULL); bot; bot = getBots(SOCKET_FLAG_READY, bot)) {
if((bot->flags & SOCKET_FLAG_CONNECTED)) {