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