# HG changeset patch # User Dominic Cleal # Date 1228605291 0 # Node ID 708653f624f3c89c1536e1ab316589a24a90e057 # Parent bb1f7ab990b12b8e48d9a779c451e9392bda3b41 Simplifying bold formatting codes diff -r bb1f7ab990b1 -r 708653f624f3 skillbot.pl --- a/skillbot.pl Sat Dec 06 23:09:56 2008 +0000 +++ b/skillbot.pl Sat Dec 06 23:14:51 2008 +0000 @@ -237,8 +237,8 @@ : "No skill currently training"); $self->privmsg('#' . $config{channel}, sprintf( - chr(2) . "%s:" . chr(15) . " %s", - $f->{char}->name, encode("utf8", $text))); + "\002%s:\002 %s", $f->{char}->name, + encode("utf8", $text))); $found++; } } @@ -482,8 +482,8 @@ $f->{timer} = add_one_shot_timer($skill->finish_time - time(), sub { $self->privmsg('#' . $config{channel}, sprintf( - chr(2) . "%s:" . chr(15) . " %s", - $f->{nick}, encode("utf8", $text))); + "\002%s:\002 %s", $f->{nick}, + encode("utf8", $text))); delete $f->{skill}; }); }