comparison skillbot.pl @ 11:277d818f5496

Changing notice to privmsg
author Dominic Cleal <dominic@computerkb.co.uk>
date Sat, 06 Dec 2008 15:54:14 +0000
parents 9cc6dbc803f6
children d9526ab0c6bb
comparison
equal deleted inserted replaced
10:9cc6dbc803f6 11:277d818f5496
413 if ($text =~ /[\n\r]/) { 413 if ($text =~ /[\n\r]/) {
414 $text =~ s/[\n\r]/ /g; 414 $text =~ s/[\n\r]/ /g;
415 } 415 }
416 416
417 add_one_shot_timer($skill->finish_time - time(), sub { 417 add_one_shot_timer($skill->finish_time - time(), sub {
418 $self->notice('#' . $config{channel}, sprintf("[%s] %s", 418 $self->privmsg('#' . $config{channel}, sprintf(
419 $f->{nick}, encode("utf8", $text))); 419 chr(2) . "%s:" . chr(15) . " %s",
420 $f->{nick}, encode("utf8", $text)));
420 delete $f->{skill}; 421 delete $f->{skill};
421 }); 422 });
422 } 423 }
423 } 424 }
424 425