]> git.vpit.fr Git - perl/scripts/xchat.git/blobdiff - mpd.pl
Make sure local_context() runs the code only when the context was found
[perl/scripts/xchat.git] / mpd.pl
diff --git a/mpd.pl b/mpd.pl
index ca732888f329a3a807dd3b2485e6b5c77fd68be2..295bae4f9ceba76f2552ba8acecf34a6064d3135 100755 (executable)
--- a/mpd.pl
+++ b/mpd.pl
@@ -5,9 +5,9 @@ use warnings;
 
 use Audio::MPD;
 
-use Xchat qw/:all/;
+use Xchat qw<:all>;
 
-use lib get_info 'xchatdir'; 
+use lib get_info 'xchatdir';
 use Xchat::XPI;
 
 our $VERSION = 0.04;
@@ -50,7 +50,7 @@ hook_command $_, sub {
  return EAT_ALL;
 }, {
  help_text => "$_, output which song is currently played by mpd"
-} for qw/MPD NP/;
+} for qw<MPD NP>;
 
 $ph = Xchat::XPI->new(
  name   => 'MPD Client',