From b461118135e3a363ae1c1a5bd42c26a8c971afa2 Mon Sep 17 00:00:00 2001 From: "Paul W. Frields" Date: Sun, 28 Jan 2007 02:09:11 +0000 Subject: back up git-svn-id: https://irssi-libnotify.googlecode.com/svn/trunk@22 291cbfae-0d27-0410-99d7-557b17e6fe3d --- notify.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notify.pl b/notify.pl index 5d69709..c34992a 100644 --- a/notify.pl +++ b/notify.pl @@ -28,10 +28,10 @@ sub notify { my ($server, $summary, $message) = @_; my $bus = Net::DBus->session; return if (!$bus); - my $svc = $bus->get_service("org.freedesktop.Notifications"); + return if (!$svc); my $obj = $svc->get_object("/org/freedesktop/Notifications"); - + return if (!$obj); # Make the message entity-safe. This is all a crappy hack and I'd # love to know a Perl-ish way to do this properly. $message =~ s/&/&/g; -- cgit