mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-17 15:36:50 +00:00
add debug status to core
This commit is contained in:
parent
7ba1d24c71
commit
e058aa40c3
@ -1,7 +1,7 @@
|
||||
/*
|
||||
|
||||
EnergyMech, IRC bot software
|
||||
Parts Copyright (c) 1997-2024 proton
|
||||
Parts Copyright (c) 1997-2025 proton
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -1364,6 +1364,10 @@ void do_core(COMMAND_ARGS)
|
||||
table_buffer(TEXT_BOTUPTIME,idle2str(now - uptime,FALSE));
|
||||
table_buffer(TEXT_BOTVERSION,VERSION,SRCDATE);
|
||||
table_buffer(TEXT_BOTFEATURES,__mx_opts);
|
||||
#ifdef DEBUG
|
||||
table_buffer("Debug\t%s%s%s",(const char *[]){"Off","On, Output = "}[dodebug],
|
||||
(debugfile==NULL) ? ((dodebug==TRUE) ? "Stdout" : "") : debugfile);
|
||||
#endif /* DEBUG */
|
||||
table_send(from,2);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user