diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-27 00:30:49 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-27 00:30:49 +0000 |
commit | b14ac0702554dfc64657ff49d336de802b086b48 (patch) | |
tree | c921d90114f12d6ebee7a6b311b2a5f4c419ab56 /IkiWiki | |
parent | 63dd2c1baee6ff3a86ddbd02ffd446ec79fbfd72 (diff) |
* Add user(name) to the PageSpec for commit subscriptions.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/UserInfo.pm | 14 |
1 files changed, 13 insertions, 1 deletions
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 |