Added API function dbug()

This commit is contained in:
Elijah Perrault committed 2011-01-16 23:26:46 -07:00
1 parent 3118964e80
commit 513e8fc506
2 files changed
+6

No files matched your search

+1
View File
@@ -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()
+5
View File
@@ -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.