diff options
author | Paul W. Frields <stickster@gmail.com> | 2007-01-28 02:09:11 +0000 |
---|---|---|
committer | Paul W. Frields <stickster@gmail.com> | 2007-01-28 02:09:11 +0000 |
commit | b461118135e3a363ae1c1a5bd42c26a8c971afa2 (patch) | |
tree | 4eb465dda663b3dcc63c8fc31da3c5949ecd435a | |
parent | 315cf1a67859478b4aedab376541246b7bc503f4 (diff) | |
download | irssi-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.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |