1

use system() instead of backticks where applicable

This commit is contained in:
eleksir
2016-10-08 20:17:37 +03:00
parent 1167d619e9
commit e61d4737d6
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ my $help = 'Usage:
/notify show - shows whitelists and their statuses
';
register($script_name, '0.7', 'Sends *nix desktop notifications', \&freehooks);
register($script_name, '0.7.1', 'Sends *nix desktop notifications', \&freehooks);
HexChat::print("$script_name loaded\n");
my @hooks;
@@ -106,7 +106,7 @@ sub hookfn {
sub notify(@) {
my($topic, $text) = @_;
`notify-send -u normal -t 12000 -a hexchat "$topic" -i hexchat "$text"`;
system("notify-send", "-u", "normal", "-t", "12000", "-a", "hexchat", $topic, "-i", "hexchat", $text);
$active = 0;
}