summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2007-01-28 02:09:11 +0000
committerPaul W. Frields <stickster@gmail.com>2007-01-28 02:09:11 +0000
commitb461118135e3a363ae1c1a5bd42c26a8c971afa2 (patch)
tree4eb465dda663b3dcc63c8fc31da3c5949ecd435a
parent315cf1a67859478b4aedab376541246b7bc503f4 (diff)
downloadirssi-notify-b461118135e3a363ae1c1a5bd42c26a8c971afa2.tar.gz
irssi-notify-b461118135e3a363ae1c1a5bd42c26a8c971afa2.tar.xz
irssi-notify-b461118135e3a363ae1c1a5bd42c26a8c971afa2.zip
back up
git-svn-id: https://irssi-libnotify.googlecode.com/svn/trunk@22 291cbfae-0d27-0410-99d7-557b17e6fe3d
-rw-r--r--notify.pl4
1 files 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/&/&amp;/g;