- Fix funky coloured characters in debugging mode
authorRalf Ertzinger <sun@ryoko.camperquake.de>
Mon, 7 Jan 2008 20:02:44 +0000 (21:02 +0100)
committerRalf Ertzinger <sun@ryoko.camperquake.de>
Mon, 7 Jan 2008 20:02:44 +0000 (21:02 +0100)
videosite/Base.pm

index 8e96585..cf8bafa 100644 (file)
@@ -21,8 +21,11 @@ sub new {
 sub error {
     my $self = shift;
     my @data = @_;
+    my $t;
 
-    Irssi::print(sprintf(shift(@_), @_));
+    $t = sprintf(shift(@_), @_);
+    $t =~ s/%/%%/g;
+    Irssi::print($t);
 }
 
 sub debug {