3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-25 04:02:37 +01:00

FactoidCommands: remove single-quote from some messages

This commit is contained in:
Pragmatic Software 2020-01-29 08:34:30 -08:00
parent 95854497ce
commit f2140569f2

View File

@ -101,7 +101,7 @@ sub call_factoid {
my ($channel, $trigger) = $self->{pbot}->{factoids}->find_factoid($chan, $keyword, arguments => $args, exact_channel => 1, exact_trigger => 1); my ($channel, $trigger) = $self->{pbot}->{factoids}->find_factoid($chan, $keyword, arguments => $args, exact_channel => 1, exact_trigger => 1);
if (not defined $trigger) { if (not defined $trigger) {
return "No such factoid '$keyword' exists for channel '$chan'"; return "No such factoid $keyword exists for $chan";
} }
$stuff->{keyword} = $trigger; $stuff->{keyword} = $trigger;
@ -581,9 +581,9 @@ sub factset {
if ($meta_level > 0) { if ($meta_level > 0) {
if ($level == 0) { if ($level == 0) {
return "You be an admin to set '$key'"; return "You must be an admin to set $key";
} elsif ($level < $meta_level) { } elsif ($level < $meta_level) {
return "You must be at least level $meta_level to set '$key'"; return "You must be at least level $meta_level to set $key";
} }
} }
@ -673,9 +673,9 @@ sub factunset {
if ($meta_level > 0) { if ($meta_level > 0) {
if ($level == 0) { if ($level == 0) {
return "You be an admin to unset '$key'"; return "You must be an admin to unset $key";
} elsif ($level < $meta_level) { } elsif ($level < $meta_level) {
return "You must be at least level $meta_level to unset '$key'"; return "You must be at least level $meta_level to unset $key";
} }
} }