}
sub laston {
- my ($flag,$min) = @_;
+ my ($msg, $command) = @_;
+
+ my ($flag,$min);
+ if(defined $msg && $msg =~ /^(\w)(?: (\d+))?$/){
+ $flag = $1;
+ $min = $2;
+ }else{
+ $ND::server->command("notice $ND::nick syntax: .$command flag [days] | lists users and the number of days since they were last seen. If days is specified it will only list users with at least that amount of idle time.");
+ return;
+ }
if (officer()){
my $f = $ND::DBH->prepare(qq{SELECT username,last