]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/tla.pm
add guard against enabling multiple rcs plugins
[ikiwiki.git] / IkiWiki / Plugin / tla.pm
index 6faaecccc5d7a48a1f44e3fd40aa6376c8d8cf48..fe596525970a0be23a1fa416cfb01c966018697c 100644 (file)
@@ -6,6 +6,9 @@ use strict;
 use IkiWiki;
 
 sub import { #{{{
+       if (exists $IkiWiki::hooks{rcs}) {
+               error(gettext("cannot use multiple rcs plugins"));
+       }
        hook(type => "checkconfig", id => "tla", call => \&checkconfig);
        hook(type => "getsetup", id => "tla", call => \&getsetup);
        hook(type => "rcs", id => "rcs_update", call => \&rcs_update);