Mercurial > hg > skillbot
comparison skillbot.pl @ 29:c25d5c1e7f28
Adding level number to eta output
author | Dominic Cleal <dominic@computerkb.co.uk> |
---|---|
date | Sat, 06 Dec 2008 23:56:28 +0000 |
parents | 2964c53ca7eb |
children | b36c677365aa ba7303a5f42d |
comparison
equal
deleted
inserted
replaced
28:2964c53ca7eb | 29:c25d5c1e7f28 |
---|---|
230 for my $f (@friends) { | 230 for my $f (@friends) { |
231 if ((defined $2 && $f->{char}->name eq $2) | 231 if ((defined $2 && $f->{char}->name eq $2) |
232 || (!defined $2 && $f->{nick} eq $their_nick)) { | 232 || (!defined $2 && $f->{nick} eq $their_nick)) { |
233 my $text = ((defined $f->{skill} | 233 my $text = ((defined $f->{skill} |
234 && $f->{skill}->finish_time > time()) | 234 && $f->{skill}->finish_time > time()) |
235 ? sprintf("Currently training %s (finish in %s)", | 235 ? sprintf("Currently training %s %s (finish in %s)", |
236 $f->{skill}->name, | 236 $f->{skill}->name, $f->{skill}->level, |
237 $f->{skill}->time_remaining) | 237 $f->{skill}->time_remaining) |
238 : "No skill currently training"); | 238 : "No skill currently training"); |
239 | 239 |
240 $self->privmsg('#' . $config{channel}, sprintf( | 240 $self->privmsg('#' . $config{channel}, sprintf( |
241 "\002%s:\002 %s", $f->{char}->name, | 241 "\002%s:\002 %s", $f->{char}->name, |