comparison skillbot.pl @ 46:bfd2b428d131

Adding */all options to !eta
author Dominic Cleal <dominic@computerkb.co.uk>
date Fri, 19 Dec 2008 12:53:37 +0000
parents 1d349044c860
children 31a4d4cab76f
comparison
equal deleted inserted replaced
45:1d349044c860 46:bfd2b428d131
227 227
228 # lists the current chars in training of the caller 228 # lists the current chars in training of the caller
229 if ($msg =~ /^\!eta(\s+(.+))?/i) { 229 if ($msg =~ /^\!eta(\s+(.+))?/i) {
230 my $found = 0; 230 my $found = 0;
231 for my $f (@friends) { 231 for my $f (@friends) {
232 if ((defined $2 && lc($f->{char}->name) eq lc($2)) 232 if ((defined $2 && (lc($f->{char}->name) eq lc($2)
233 || lc($2) eq 'all' || lc($2) eq '*'))
233 || (!defined $2 && $f->{nick} eq $their_nick)) { 234 || (!defined $2 && $f->{nick} eq $their_nick)) {
234 my $text; 235 my $text;
235 if (defined $f->{skill}) { 236 if (defined $f->{skill}) {
236 my $downtime = ''; 237 my $downtime = '';
237 if (skill_finish_in_downtime($f->{skill})) { 238 if (skill_finish_in_downtime($f->{skill})) {