Guest User

Untitled

a guest
Jun 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.96 KB | None | 0 0
  1. ############ VLC Player 2.0 - © 2011, Arcademan. ############################
  2. #!/usr/bin/perl
  3.  
  4. use strict;
  5. use warnings;
  6. use Xchat qw( :all );
  7. use LWP::UserAgent;
  8.  
  9. #############################################################################
  10.  
  11. my $version = "2.0";
  12. Xchat::register("Lumpy's Script", $version, "Displays Lumpy Info!","");
  13.  
  14. #############################################################################
  15.  
  16. my $text      = "44"; #desired text color
  17.  
  18. #############################################################################
  19.  
  20. Xchat::command("ination", "ination");
  21. Xchat::command("lumpy", "lumpy");
  22.  
  23. #############################################################################
  24.  
  25. sub ination {
  26. Xchat::command("me \003$text - \0039 NP: \0035 \0032 Indie Nation is a streaming online radio station which features independent music, tech geek news, live shows, interviews and much more. \0035 \003");
  27. return Xchat::EAT_ALL;
  28. }
  29.  
  30. sub lumpy {
  31. Xchat::command("me \003$text - \0039 NP: \0035 \0032 Lumpy is the owner and unboss.  Lumpy is gifted with many voices.  Unfortunately, they are not the ones to be directed into a microphone but the type that argue in his head. \0035 \003");
  32. return Xchat::EAT_ALL;
  33. }
  34.  
  35. #############################################################################
  36.  
  37. foreach ("Channel Message", "Channel Message Hilight") { Xchat::hook_print($_, \&IndieNation ); }
  38. sub IndieNation {
  39.    # Get Channel and Network:
  40.    my $strChan = Xchat::get_info("channel");
  41.    my $strNetwork = Xchat::get_info("network");
  42.    # If Channel or Network Do Not Match Below Do Nothing!
  43.    if ($strChan !~ m/^(#indienation)$/i) { return Xchat::EAT_NONE; }
  44.    if ($strNetwork !~ m/^(Geekshed-BNC)$/i) { return Xchat::EAT_NONE; }
  45.    if ($_[0][1] !~ m/^!indienation/i) { return Xchat::EAT_NONE; }
  46.    if ($_[0][2] !~ m/[%@&~!+]/) { return Xchat::EAT_NONE; }
  47.    my @Playlist = ("!indienation", $+); &ination(\@Playlist);
  48.    return Xchat::EAT_NONE;
  49. }
Add Comment
Please, Sign In to add comment