changeset 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
files skillbot.pl
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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};
 	});
 }