diff options
author | Paul W. Frields <stickster@gmail.com> | 2007-01-28 02:10:41 +0000 |
---|---|---|
committer | Paul W. Frields <stickster@gmail.com> | 2007-01-28 02:10:41 +0000 |
commit | 351073b9c59fb3ae552239f53bfa6c385899468b (patch) | |
tree | 7f0e9aa50291cc1b174595408b6927b17628341e | |
parent | b461118135e3a363ae1c1a5bd42c26a8c971afa2 (diff) | |
download | irssi-notify-351073b9c59fb3ae552239f53bfa6c385899468b.tar.gz irssi-notify-351073b9c59fb3ae552239f53bfa6c385899468b.tar.xz irssi-notify-351073b9c59fb3ae552239f53bfa6c385899468b.zip |
One of these comparisons causes an irssi segfault, not good
git-svn-id: https://irssi-libnotify.googlecode.com/svn/trunk@23 291cbfae-0d27-0410-99d7-557b17e6fe3d
-rw-r--r-- | notify.pl | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -29,9 +29,8 @@ sub notify { 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; |