diff options
author | Paul W. Frields <stickster@gmail.com> | 2007-02-17 21:38:55 +0000 |
---|---|---|
committer | Paul W. Frields <stickster@gmail.com> | 2007-02-17 21:38:55 +0000 |
commit | 98c4349c009df4e90d8c986ddd7a465a15f9b310 (patch) | |
tree | 8d893cd2267ad3df8c0472d2776fd1265e6de69e | |
parent | 4de49f8a3edcbd5f1ab4565c99fe914b56d4e602 (diff) | |
download | irssi-notify-98c4349c009df4e90d8c986ddd7a465a15f9b310.tar.gz irssi-notify-98c4349c009df4e90d8c986ddd7a465a15f9b310.tar.xz irssi-notify-98c4349c009df4e90d8c986ddd7a465a15f9b310.zip |
Add name to public channel message notification summary
git-svn-id: https://irssi-libnotify.googlecode.com/svn/trunk@32 291cbfae-0d27-0410-99d7-557b17e6fe3d
-rw-r--r-- | notify.pl | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -45,7 +45,11 @@ sub print_text_notify { my $server = $dest->{server}; return if (!$server || !($dest->{level} & MSGLEVEL_HILIGHT)); - notify($server, $dest->{target}, $stripped); + my $sender = $stripped; + $sender =~ s/^\<.([^\>]+)\>.+/\1/ ; + $stripped =~ s/^\<.[^\>]+\>.// ; + my $summary = $dest->{target} . ": " . $sender; + notify($server, $summary, $stripped); } sub message_private_notify { |