X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=include.pl;h=cb27693ad98045eb1a947189119942749a44bf70;hb=4a2808d93a479a6ecd26849bd0a765699a475684;hp=cc7bbe6850fa43b880c8613c92dd110f804ddac8;hpb=9e13e343c9a55ca8a765ebc138779dcec9146829;p=ndwebbie.git diff --git a/include.pl b/include.pl index cc7bbe6..cb27693 100644 --- a/include.pl +++ b/include.pl @@ -36,4 +36,16 @@ sub isBC { return exists $ND::GROUPS{BC}; } +sub isOfficer { + return exists $ND::GROUPS{Officers}; +} + +sub parseMarkup { + my ($text) = @_; + + $text =~ s{\n}{\n
}g; + $text =~ s{\[B\](.*?)\[B\]}{$1}; + return $text; +} + 1;