Skip to content

Commit

Permalink
Fix adds an -- after flags to notify-send
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Gustavsson <kent@minoris.se>
  • Loading branch information
orrche committed Nov 20, 2016
1 parent 4b08538 commit f43d80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notify.pl
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ sub notify {
$message = sanitize($message);

my $cmd = "EXEC - " .
"notify-send -a irssi '" . $summary . "' '". $message . "'";
"notify-send -a irssi -- '" . $summary . "' '". $message . "'";
$server->command($cmd);

my $remote = Irssi::settings_get_str('notify_remote');
if ($remote ne '') {
my $cmd = "EXEC - ssh -q " . $remote .
"notify-send -a irssi '" . $summary . "' '". $message . "'";
"notify-send -a irssi -- '" . $summary . "' '". $message . "'";
$server->command($cmd);
}

Expand Down

0 comments on commit f43d80a

Please sign in to comment.