# HG changeset patch # User Dominic Cleal # Date 1228650011 0 # Node ID 5900a37101ebb47875a3732f12afc7db82a56038 # Parent 6baa10b255ae2e491fc11cc4fbbba414988490ac Bold names in !next diff -r 6baa10b255ae -r 5900a37101eb skillbot.pl --- a/skillbot.pl Sun Dec 07 11:37:53 2008 +0000 +++ b/skillbot.pl Sun Dec 07 11:40:11 2008 +0000 @@ -251,18 +251,19 @@ } # force update/reload of the friends/training data - if ($msg =~ /^\!update/i) { + elsif ($msg =~ /^\!update/i) { update_friends($self); check_training($self); $self->privmsg('#' . $config{channel}, "Done"); } # lists the chars in order of shortest training time - if ($msg =~ /^\!next/i) { + elsif ($msg =~ /^\!next/i) { my $nreply = "Training: "; for my $f (sort { $a->{skill}->finish_time <=> $b->{skill}->finish_time } grep(defined $_->{skill}, @friends)) { - $nreply .= $f->{char}->name . " (" . $f->{skill}->time_remaining . ") | "; + $nreply .= sprintf("\002%s\002 (%s) | ", + $f->{char}->name, $f->{skill}->time_remaining); } $self->privmsg('#' . $config{channel}, substr($nreply, 0, -3));