mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-02 15:34:05 +01:00
Minor correction
This commit is contained in:
parent
50d859cb0b
commit
6c31f3e1b7
@ -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.";
|
||||||
|
Loading…
Reference in New Issue
Block a user