so... +O => +o == +mrt (modify,remove,teach)
oh well.. it's there if anyone needs it. undocumented though.
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@594
c11ca15a-4712-0410-83d8-
924469b57eb5
my $isau = (defined $author and &IsHostMatch($author) == 2) ? 1 : 0;
my $isop = (&IsFlag("o") eq "o") ? 1 : 0;
- if (IsFlag("r") ne "r") {
+ if (IsFlag("r") ne "r" && !$isop) {
&msg($who, "you don't have access to remove factoids");
return;
}
}
# teaching.
- if (&IsFlag("t") ne "t") {
+ if (&IsFlag("t") ne "t" && &IsFlag("o") ne "o") {
&msg($who, "permission denied.");
&status("alert: $who wanted to teach me.");
return 1;
my $author = &getFactInfo($lhs, "created_by") || "";
- if (IsFlag("m") ne "m" and $author !~ /^\Q$who\E\!/i) {
+ if (IsFlag("m") ne "m" && IsFlag("o") ne "o" &&
+ $author !~ /^\Q$who\E\!/i
+ ) {
&msg($who, "you can't change that factoid.");
return 1;
}