From 6c297c40974648f588d2c8118cc579d35592383d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 28 Mar 2012 20:42:37 -0400 Subject: [PATCH] fix adding first subscription to pagespec --- IkiWiki/Plugin/notifyemail.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/notifyemail.pm b/IkiWiki/Plugin/notifyemail.pm index c345e4365..926761d94 100644 --- a/IkiWiki/Plugin/notifyemail.pm +++ b/IkiWiki/Plugin/notifyemail.pm @@ -61,7 +61,8 @@ sub subscribe ($$) { my $user=shift; my $addpagespec=shift; my $pagespec=getsubscriptions($user); - setsubscriptions($user, $pagespec." or ".$addpagespec); + setsubscriptions($user, + length $pagespec ? $pagespec." or ".$addpagespec : $addpagespec); } sub notify (@) { -- 2.26.2