From b14ac0702554dfc64657ff49d336de802b086b48 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 27 Apr 2007 00:30:49 +0000 Subject: * Add user(name) to the PageSpec for commit subscriptions. --- IkiWiki/UserInfo.pm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/UserInfo.pm b/IkiWiki/UserInfo.pm index d32f5c1bf..8bd056248 100644 --- a/IkiWiki/UserInfo.pm +++ b/IkiWiki/UserInfo.pm @@ -92,8 +92,11 @@ sub set_banned_users (@) { #{{{ return userinfo_store($userinfo); } #}}} +# Global used to pass information into the PageSpec function. +our $committer; + sub commit_notify_list ($@) { #{{{ - my $committer=shift; + $committer=shift; my @pages = map pagename($_), @_; my @ret; @@ -177,4 +180,13 @@ sub send_commit_mails ($$$@) { #{{{ } } #}}} +package IkiWiki::PageSpec; + +sub match_user ($$$) { #{{{ + shift; + my $user=shift; + + return $user eq $committer; +} #}}} + 1 -- cgit v1.2.3