3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Increase minimum factoid name length to 60

This commit is contained in:
Pragmatic Software 2019-05-08 20:09:34 -07:00
parent 02c8cfd83b
commit 4ce8e8b316

View File

@ -753,7 +753,7 @@ sub factmove {
} }
} }
if (length $target > 30) { if (length $target > 60) {
return "/say $nick: I don't think the factoid name needs to be that long."; return "/say $nick: I don't think the factoid name needs to be that long.";
} }
@ -842,7 +842,7 @@ sub factalias {
return "Usage: factalias [channel] <keyword> <command>"; return "Usage: factalias [channel] <keyword> <command>";
} }
if (length $alias > 30) { if (length $alias > 60) {
return "/say $nick: I don't think the factoid name needs to be that long."; return "/say $nick: I don't think the factoid name needs to be that long.";
} }
@ -932,7 +932,7 @@ sub factadd {
$from_chan = '.*' if $from_chan !~ /^#/; $from_chan = '.*' if $from_chan !~ /^#/;
if (length $keyword > 30) { if (length $keyword > 60) {
return "/say $nick: I don't think the factoid name needs to be that long."; return "/say $nick: I don't think the factoid name needs to be that long.";
} }