summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2007-02-17 21:38:55 +0000
committerPaul W. Frields <stickster@gmail.com>2007-02-17 21:38:55 +0000
commit98c4349c009df4e90d8c986ddd7a465a15f9b310 (patch)
tree8d893cd2267ad3df8c0472d2776fd1265e6de69e
parent4de49f8a3edcbd5f1ab4565c99fe914b56d4e602 (diff)
downloadirssi-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.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/notify.pl b/notify.pl
index 67a0b33..eaa8d63 100644
--- a/notify.pl
+++ b/notify.pl
@@ -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 {