From aa421a2d56c5bdfb467eddaba478e5aef04bbce4 Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Tue, 26 Apr 2011 17:42:42 +0000 Subject: Lots of added stuff. Don't know whatall. --- modules/command.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/command.pl') diff --git a/modules/command.pl b/modules/command.pl index 07ef31e..889a3de 100644 --- a/modules/command.pl +++ b/modules/command.pl @@ -2,6 +2,7 @@ package ASM::Commander; use warnings; use strict; use IO::All; +use POSIX qw(strftime); sub new { @@ -41,7 +42,7 @@ sub command } } if ($cmd=~/$command->{cmd}/) { - print "$event->{from} told me: $cmd \n"; + print strftime("%F %T ", gmtime) . "$event->{from} told me: $cmd \n"; eval $command->{content}; warn $@ if $@; last; -- cgit v1.2.3