Minor correction

This commit is contained in:
Pragmatic Software 2018-07-31 17:23:15 -07:00
parent 50d859cb0b
commit 6c31f3e1b7
1 changed files with 1 additions and 5 deletions

View File

@ -928,11 +928,7 @@ sub factadd {
return "Usage: factadd [channel] <keyword> <factoid>"; return "Usage: factadd [channel] <keyword> <factoid>";
} }
if ($from_chan !~ /^#/) { $from_chan = '.*' if $from_chan !~ /^#/;
if (lc $from_chan ne 'global' and $from_chan ne '.*') {
return "Usage: factadd [channel] <keyword> <text>";
}
}
if (length $keyword > 30) { if (length $keyword > 30) {
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.";