libvideosite: Allow calls to _io without arguments (to print an empty line)
authorRalf Ertzinger <ralf@skytale.net>
Tue, 30 Apr 2013 14:04:06 +0000 (16:04 +0200)
committerRalf Ertzinger <ralf@skytale.net>
Tue, 30 Apr 2013 14:04:06 +0000 (16:04 +0200)
libvideosite.pm

index bebc8a5..b581e5a 100644 (file)
@@ -130,6 +130,8 @@ sub _io {
     my @text = @_;
     my $format;
 
     my @text = @_;
     my $format;
 
+    @text = ('') unless(@text);
+
     # This will define the outputprefix once, so we don't have
     # do do this every time.
     $outputprefix = sprintf("%svideosite: %s",
     # This will define the outputprefix once, so we don't have
     # do do this every time.
     $outputprefix = sprintf("%svideosite: %s",