Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.41 KB | None | 0 0
  1. use strict;
  2. use vars qw($VERSION %IRSSI);
  3.  
  4. use Irssi;
  5.  
  6. sub moc {
  7.  
  8.     my ($param, $server, $witem) = @_;
  9.     if ($server || $server->{connected}) {
  10.         my $mocpinfo = `conkyRhythmbox -d AR`;
  11.         $mocpinfo = $mocpinfo + "-" + `conkyRhythmbox -d TI`;
  12.         if ($witem && ($witem->{type} eq "CHANNEL" || $witem->{type} eq "QUERY")){
  13.             $witem->command('ME np: ' . $mocpinfo);}
  14.     }
  15.  
  16. }
  17.  
  18. Irssi::command_bind ('np', 'moc');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement