if (!$addressed) {
return '' unless ($finalQMark);
- return '' if (&IsParam("minVolunteerLength") == 0);
- return '' if (length $query < $param{'minVolunteerLength'});
+ return '' unless &IsChanConf("minVolunteerLength");
+ return '' if (length $query < &::getChanConf('minVolunteerLength'));
} else {
### TODO: this should be caught in Process.pl?
return '' unless ($talkok);
# support command redirection.
# recursive cmdHooks aswell :)
my $done = 0;
- $done++ if &parseCmdHook("main", $link);
- $done++ if &parseCmdHook("extra", $link);
+ $done++ if &parseCmdHook($link);
$message = $link;
$done++ unless (&Modules());
}
### TODO: Use &Forker(); move function to Debian.pl
- if (&IsChanConf("debianForFactoid")) {
- &loadMyModule($myModules{'Debian'});
+ if (&IsChanConf('debianForFactoid')) {
+ &loadMyModule('Debian');
$result = &Debian::DebianFind($query); # ???
### TODO: debian module should tell, through shm, that it went
### ok or not.
# TODO: cache this, update cache when altered. !!! !!! !!!
# my $t = &timeget();
my ($first) = split(/\s+/, $str);
- my @list = &searchTable("factoids", "factoid_key", "factoid_key", "^CMD: $first ");
+ my @list = &searchTable("factoids", "factoid_key", "factoid_key", "^cmd: $first ");
# my $delta_time = &timedelta($t);
# &DEBUG("factArgs: delta_time = $delta_time s");
# &DEBUG("factArgs: list => ".scalar(@list) );
foreach (sort { length($b) <=> length($a) } @list) {
next if (/#DEL#/); # deleted.
- s/^CMD: //i;
+ s/^cmd: //i;
# &DEBUG("factarg: '$str' =~ /^$_\$/");
my $arg = $_;
&status("Question: factoid Arguments for '$str'");
# TODO: use getReply() - need to modify it :(
my $i = 0;
- my $q = "CMD: $_";
+ my $q = "cmd: $_";
my $r = &getFactoid($q);
if (!defined $r) {
&DEBUG("question: !result... should this happen?");