File: 439840-nowplaying.diff

package info (click to toggle)
irssi-scripts 20100512
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,420 kB
  • ctags: 2,479
  • sloc: perl: 58,204; sh: 171; makefile: 33
file content (29 lines) | stat: -rw-r--r-- 801 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/scripts/xmms.pl
+++ b/scripts/xmms.pl
@@ -28,14 +28,14 @@
 use strict;
 use Irssi;
 use vars qw($VERSION %IRSSI);
-$VERSION = "2.0";
+$VERSION = "2.0+1";
 %IRSSI = {
     authors     => 'Simon Shine',
     contact     => 'simon@blueshell.dk',
     name        => 'xmms',
     description => 'XMMS-InfoPipe front-end - allow /np [-help] [dest]',
     license     => 'Public Domain',
-    changed     => '2004-01-15'
+    changed     => '2006-10-27'
 };
 
 Irssi::settings_add_str('xmms', 'xmms_fifo', '/tmp/xmms-info');
@@ -139,6 +139,9 @@
         $format =~ s/\%$_/$fs{$_}/g;
     }
 
+    # remove newline characters
+    $format =~ s/[\r\n]/ /g;
+
     # sending it.
     if ($server && $server->{connected} && $witem &&
         ($witem->{type} eq "CHANNEL" || $witem->{type} eq "QUERY")) {