aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/UserInfo.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/UserInfo.pm')
-rw-r--r--IkiWiki/UserInfo.pm14
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