comparison skillbot.pl @ 27:708653f624f3

Simplifying bold formatting codes
author Dominic Cleal <dominic@computerkb.co.uk>
date Sat, 06 Dec 2008 23:14:51 +0000
parents bb1f7ab990b1
children 2964c53ca7eb
comparison
equal deleted inserted replaced
26:bb1f7ab990b1 27:708653f624f3
235 $f->{skill}->name, 235 $f->{skill}->name,
236 $f->{skill}->time_remaining) 236 $f->{skill}->time_remaining)
237 : "No skill currently training"); 237 : "No skill currently training");
238 238
239 $self->privmsg('#' . $config{channel}, sprintf( 239 $self->privmsg('#' . $config{channel}, sprintf(
240 chr(2) . "%s:" . chr(15) . " %s", 240 "\002%s:\002 %s", $f->{char}->name,
241 $f->{char}->name, encode("utf8", $text))); 241 encode("utf8", $text)));
242 $found++; 242 $found++;
243 } 243 }
244 } 244 }
245 245
246 if ($found == 0) { 246 if ($found == 0) {
480 }); 480 });
481 } 481 }
482 482
483 $f->{timer} = add_one_shot_timer($skill->finish_time - time(), sub { 483 $f->{timer} = add_one_shot_timer($skill->finish_time - time(), sub {
484 $self->privmsg('#' . $config{channel}, sprintf( 484 $self->privmsg('#' . $config{channel}, sprintf(
485 chr(2) . "%s:" . chr(15) . " %s", 485 "\002%s:\002 %s", $f->{nick},
486 $f->{nick}, encode("utf8", $text))); 486 encode("utf8", $text)));
487 delete $f->{skill}; 487 delete $f->{skill};
488 }); 488 });
489 } 489 }
490 490
491 END { 491 END {