turn on and off debug at runtime

This commit is contained in:
joonicks
2025-10-24 16:25:30 +02:00
parent c95778523a
commit ecc2a5e507
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,9 @@
Write debug information to a file named "debug.<timestamp>".
On <debugfile> - Turn On debug and write output to <debugfile>
Off - Turn Off debug
If no arguments are given, debug data will be written
to a file named "debug.<timestamp>".
Only available if compiled with debug support. Only available if compiled with debug support.

View File

@@ -1,7 +1,7 @@
/* /*
EnergyMech, IRC bot software EnergyMech, IRC bot software
Copyright (c) 2000-2009 proton Copyright (c) 2000-2025 proton
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
@@ -59,7 +59,7 @@ LS const UsageList ulist[] =
#endif /* CTCP */ #endif /* CTCP */
{ C_CYCLE, "[channel]" }, { C_CYCLE, "[channel]" },
#ifdef DEBUG #ifdef DEBUG
{ C_DEBUG, NULL }, { C_DEBUG, "[On <debugfile>|Off]" },
#endif /* DEBUG */ #endif /* DEBUG */
{ C_DEOP, "[channel] <nick|pattern [...]>" }, { C_DEOP, "[channel] <nick|pattern [...]>" },
{ C_DIE, "[reason]" }, { C_DIE, "[reason]" },