Skip to content

Commit

Permalink
Merge pull request #1 from Anachronist/patch-1
Browse files Browse the repository at this point in the history
Compatibility for rebranded XChat-WDK, HexChat.
  • Loading branch information
vBm committed Oct 3, 2012
2 parents f707947 + 1a29a3d commit d1b53ed
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions mpc.hc.np.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@

#############################################################################

Xchat::hook_command("np", "mpchc");

#############################################################################

sub mpchc {
Xchat::hook_command("np", sub {
my $browser = LWP::UserAgent->new; # Create A session!
my $url = 'http://localhost:13579/info.html'; # HTML File Here!
$browser->timeout(3); # How Long to Wait!
Expand Down Expand Up @@ -46,5 +42,6 @@ sub mpchc {
Xchat::command("say $mpchcnp");
}
return Xchat::EAT_ALL;
}
});

#############################################################################

0 comments on commit d1b53ed

Please sign in to comment.