]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Rcs/tla.pm
web commit by http://id.inelegant.org/: Markdown ate my previous attempt at pasting...
[ikiwiki.git] / IkiWiki / Rcs / tla.pm
index be5ec0601304d1c66c12f366c40d794975cd47fd..7254eb1a7f5cb6a87b4ea6b3d6aa18e34275c387 100644 (file)
@@ -38,10 +38,19 @@ sub rcs_prepedit ($) { #{{{
        }
 } #}}}
 
-sub rcs_commit ($$$) { #{{{
+sub rcs_commit ($$$;$$) { #{{{
        my $file=shift;
        my $message=shift;
        my $rcstoken=shift;
+       my $user=shift;
+       my $ipaddr=shift;
+
+       if (defined $user) {
+               $message="web commit by $user".(length $message ? ": $message" : "");
+       }
+       elsif (defined $ipaddr) {
+               $message="web commit from $ipaddr".(length $message ? ": $message" : "");
+       }
 
        if (-d "$config{srcdir}/{arch}") {
                # Check to see if the page has been changed by someone