Added API function dbug()
This commit is contained in:
1 parent
3118964e80
commit
513e8fc506
2 files changed
+6
No files matched your search
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
||||
|
||||
3.0 Indev
|
||||
==================================================================
|
||||
* Added API function dbug()
|
||||
* Added a debug mode.
|
||||
* Old logs can now expire if set to do so in config.
|
||||
* Added API function alog()
|
||||
|
||||
@@ -42,7 +42,12 @@ sub println
|
||||
# Print only if in debug mode.
|
||||
sub dbug
|
||||
{
|
||||
my ($out) = @_;
|
||||
|
||||
if ($Auto::DEBUG) {
|
||||
# We're in debug mode; print it out.
|
||||
println $out;
|
||||
}
|
||||
}
|
||||
|
||||
# Log to file.
|
||||
|
||||
Reference in new issue
Block a user